BusyBox combines tiny versions of many common UNIX utilities into a single small executable.

learn more… | top users | synonyms

3
votes
2answers
246 views

What is stopping our UDP packets (how does it know the route is down)?

We have a server (camera) sending RTSP video packets via UDP. At a customer site it travels over several hops, one of which may be an unreliable WiFi link that drops the odd packet or five. Usually ...
1
vote
2answers
14 views

Minimal Busybox/Linux Installation - Won't Run C

I'm trying my hand at creating a very minimal custom Busybox/Linux distro, a task that is admittedly above my head, but I figured I'd give it a shot. My issue is that whenever I try to run a C program ...
1
vote
0answers
34 views

Getting Busybox Cron to work on Qemu ARM VM [on hold]

I created a .sh script, then tried crontab -e and entered * * * * * /etc/cronscript.sh, then tried to start it by typing crond. It looks like its trying to do something once per minute, but not my ...
4
votes
3answers
21k views

How to remount as read-write a specific mount of device?

How to remount as read-write a specific mount of device? (one folder) The file is "Read-only file system", rw-r-r, so it not allow to change permissions. I need to replace that file, then change ...
0
votes
0answers
22 views

failed windows install Linux boot error to initramfs busybox vg-root no such device. ubipartman when try to fresh install? Please help

Had Linux 15 installed, was running so decided to install windows. Was trying to install Windows 7 and then 8. Both failed,but not before requiring me to create a new partition.(Windows said it ...
1
vote
2answers
802 views

Check the filesystem format with BusyBox (stat -f and df -T do not work)

I am using latest BusyBox v1.22.1 in my target. I want to check the filesystem type using stat -f or df -T but busybox doesn't support such commands. busybox help shows stat command as supported but ...
1
vote
1answer
12 views

Adding a custom preset build configuration to make

I'm building busybox from source and I have more than one configuration. (For different uses) As I have it now, each time I want to build something, I have to copy the correct .config file to the ...
0
votes
1answer
28 views

Unable to mount USB media in sagem fast3304 V2 router (busybox v1.01 inside)

I have a wireless router that runs busybox (V1.0). A media server (Twonky Media Version 3.4) running on this router. I would like to use its USB port to mount an external drive containing mutltimedia ...
2
votes
1answer
2k views

Linux 2.6.32, busybox, Identify physical SD device

I have a USB card reader with two SD card interfaces and two USB ports (so it can also act as a USB hub) all on the same device. I am running an embedded Linux device that is unsupervised in its use ...
2
votes
1answer
129 views

bash while/read loop behaves differently in a mips/musl/busybox based VM

On a musl/busybox based system running in qemu (mips), the script #!/usr/bin/bash printf '%s\n' "${BASH_VERSION}" > test.txt echo 'test.txt:' cat test.txt echo "No process substitution:" while ...
9
votes
1answer
12k views

when does the system send a SIGTERM to a process?

My server program received a SIGTERM and stopped (with exit code 0). I am surprised by this, as I am pretty sure that there was plenty of memory for it. Under what conditions does linux (busybox) send ...
0
votes
0answers
38 views

Ubuntu 15.10 system rescue on Busy Box after botched Deja-Dup backup attempt

I received an external hard drive for Christmas and attempted a backup of the home directory of my Ubuntu 15.10 system. Unfortunately, I botched it, and when I came back to the computer to check how ...
0
votes
0answers
80 views

How to auto-renew IP from DHCP if IP is lost or changed?

I have a Synology DS1515+ fileserver running "BusyBox v1.16.1 (2015-10-28 13:23:20 CST) built-in shell (ash)", stripped down from commands. Machine is running Linux 3.10.35 #5644 SMP Tue Dec 1 ...
0
votes
1answer
50 views

Using dd command to download mtd block

How to use dd command to download mtd block from embedded Linux-based device? # cat /proc/mtd dev: size erasesize name ... mtd3: 003a0000 00010000 "DRTI2" I need download mtd3 block, so dd ...
0
votes
1answer
26 views

Compress mtdblock with 'tar' before sending it via TFTP

what is proper command compress mtdblock with 'tar' before sending it via TFTP? tftp -l /dev/mtdblock3 -p 192.168.100.40
1
vote
0answers
26 views

change ls color on OpenWrt

I am not able to change the color of dir entries for ls command (dark blu is a very annoying color to read) on my OpenWrt device. I've added the line LS_COLORS=$LS_COLORS:'di=0;37:' ; export ...
0
votes
2answers
875 views

buildroot/busybox: launch bootchartd on startup

I built a custom linux image using buildroot and busybox. To speed up the boot process I'd like to use bootchartd (built-in version of busybox) to profile the process. However bootchartd is not ...
0
votes
0answers
21 views

Install ifenslave in older busybox version

I would like to bond my ethernet interfaces and as much as I know, I need ifenslave for that. I use an older busybox version so it isn't installed how can I install or update it?
1
vote
2answers
5k views

Stat disk drives wihout lsblk?

I have a minimalist busybox system that I was recently trying to use, and I found a small problem: it has no lsblk command. Is there another command to list disks, partitions, and sizes like lsblk? ...
1
vote
1answer
43 views

Busybox pager with color capability?

I asked on Superuser about colors for git log in MobaXterm (on Windows), but it turned out that the problem wasn't MobaXterm—it's the lack of a -R flag in busybox's less. It would help my workflow ...
3
votes
1answer
85 views

How to fix “deauthentication by local choice”?

I built an embedded Linux using Buildroot and I have some trouble to stay connected to my AP. Cannot get an IP address more than once. I use wpa_supplicant to connect to my AP using WPA2-PSK. It ...
1
vote
1answer
71 views

How to find all files containing a specific string recursively on a BusyBox 1.4.2?

How to find all files containing a specific string within directory and all subdirectories on a BusyBox v1.4.2? I need to find string "AA:CC:DD:00:EE:55" or "AACCDD00EE55" BusyBox v1.4.2 (2012-06-01 ...
1
vote
2answers
241 views

How can I print the second to last line of many files into one file? [duplicate]

I have many CSV files in one directory which have various lengths. I'd like to put the second to last line of each file into one file. I tried something like tail -2 * | head -1 > file.txt, then ...
1
vote
1answer
79 views

Is sed run as a different user?

I have a sed script that changes some content in /etc/shadow. The actual change isn't important, I will put it just as an example: root@device:~ sed -i 's/root:\(.*\):0:0/root:\1:10:0/' /etc/shadow ...
0
votes
2answers
227 views

How to run the HTTP request without using CURL

I have ARM cpu based BusyBox v1.8.1 (Embedded Linux) with limited binaries. How can I http post or put without using curl? I have wget available: # wget BusyBox v1.8.1 (2015-04-06 16:22:12 IDT) ...
0
votes
0answers
137 views

Use dpkg in busybox

I am trying to install sensu inside a busybox docker container (busybox:ubuntu-14.04). To do that, I've downloaded the .deb package from the official sensu repositories and now I'm trying to install ...
1
vote
0answers
107 views

ext4 formatted sd card with rootfs.squashfs

I have an embedded system with an sd card that has an ext4 filesystem on it. I have a rootfs.squasfs that is placed in the ext4 filesystem and I am trying to boot to it. I built an initramfs where I ...
0
votes
2answers
63 views

Does ntpd have a default driftfile?

I have an embedded Linux with busybox's ntpd. My ntpd.conf is tinker panic 0 server pool.ntp.org iburst server 0.pool.ntp.org iburst server 1.pool.ntp.org iburst restrict default kod nomodify notrap ...
1
vote
2answers
146 views

Automatically entering ssh password from Busybox terminal

I currently am attempting to reboot a modem via ssh using a bash script. For reasons I don't feel like explaining, I NEED to start on an ubuntu server computer, ssh into a setup running busybox 1.21.1 ...
1
vote
1answer
382 views

Tftp file transfer via serial port

First , please excuse me for my very thin knowledge with Linux, just getting to learn it in work. So my question is if I can transfer files from my Linux machine which runs busybox using tftp over ...
1
vote
1answer
46 views

How to start a service in Netgear R7000(stock firmware)

I am working on Netgear R7000 build system(stock firmware).I want to start a service.I noticed that init is linked to busybox and busybox init does not use run levels.I have written a script in ...
0
votes
1answer
74 views

logrotate not compressing files as expected

With the logrotate config. below I was expecting the program to start compressing log files after creating the first backup file. Instead I am seeing this: [root@host ~]# ll /var/log total 1.2M ...
0
votes
1answer
215 views

Run shell scripts with -x for debugging system v boot

I need to debug the userspace part of the boot process and would like to run all the scripts with sh -x by default so I can observe what’s happening during boot. It's an embedded system that's using ...
0
votes
1answer
105 views

BusyBox : dhcp client seems to cause NFS mount to stop working

I have a BusyBox based embedded Linux system, mounting the RFS via NFS. This works fine except when I try to use udhcpd to get a DHCP address for eth0. This then causes the NFS mount to stop ...
2
votes
2answers
2k views

busybox initramfs loop mount

I'm trying to loop mount my root filesystem (a loop file) within a busybox initramfs. I try to run the command: mount /rootfs.raw /root ... which works on my Ubuntu laptop, however, I simply get ...
2
votes
1answer
176 views

Relative path to anything not working (while running from initramfs)

I'm working in an embedded Linux system trying to get it booting its root file system in ram using initramfs. The system comes up for the most part but then has trouble in the init scripts. I've ...
3
votes
1answer
156 views

Start sh in a specified directory from inittab

I am currently working on an embedded Linux system. For it to be similar to our other products I need to have it start a shell in a specified directory on boot, accessible using the serial port. For ...
2
votes
2answers
44 views

Workaround for busybox head that drops NUL from data

TL;DR: Latest busybox (1.23.2) provided head is buggy and will happily drop NUL characters in the provided data. Replacing the binaries is not an option. I'm using head -[nc] -X in my scripts, is ...
2
votes
1answer
244 views

DD-WRT and mount command

I want to mount my usb drives using UUID or Labels. The busybox provided mount does not support these functions. I installed mount-utils from entware. However the busybox mount overrides the mount ...
4
votes
1answer
4k views

Minimal Linux with kernel and BusyBox: /etc/inittab is ignored, only /init is executed

I managed to create a small and fully functional live Linux CD which contains only kernel (compiled with default options) and BusyBox (compiled with default options + static, all applets present, ...
0
votes
1answer
123 views

Cron not working at startup, but works if restarted?

For some testing, I need to reboot my system every minute. I have a busybox based system, installed cron using opkg. I setup a cron job using crontab, everything looks ok: root@SL1000-1103DC:~# ...
3
votes
4answers
538 views

How can I reboot my Linux system every 60 seconds?

I am debugging some embedded hardware that runs Linux 3.2.6 Angstrom distro, I need the unit to reboot every 60 seconds. I tried this: In /etc/rc5.d : S99reboot -> /home/root/test.sh ...
5
votes
3answers
371 views

sshd not starting after boot on embedded linux built with buildroot?

I've done a minimal install using buildroot's default config for the Raspberry Pi. I also selected openssh and openssl from menuconfig: Package Selection for the target ---> [*] Networking ...
0
votes
6answers
228 views

How can I filter out a specific part of a JSON response in ash shell

I'm using wget with -qO to a specific updater URL for OpenELEC which provides the following JSON response, similar to the one below. ...
0
votes
0answers
138 views

busybox tab completion in vi mode

When I use busybox and switch editing mode to vi via set -o vi then tab completion stops working. When I switch back set -o emacs then tab completion starts working again. # set -o vi # ls -l ...
1
vote
1answer
352 views

Overriding udchcp flags used by ifup in BusyBox

I am working on a system that I did not create the BusyBox build for. I do not want to recompile BusyBox for fear that my configuration will not completely match the original and besides this the ...
4
votes
3answers
707 views

RegExp testing with ash shell (BusyBox)

I need to do a RegExp pattern test on a certain bit of user input. This is the pattern I need to test the value against. ^([a-z]{2,3})\-([a-z][a-z]*[0-9]*)\-(\d+)$ An example match would be: ...
0
votes
3answers
110 views

Is there something like “common Linux commands”? [duplicate]

I come from the windows world trying to switch to Linux. Sorry for the naïve question but is there something like "common Linux commands"? For example in Windows, the command line is pretty limited, ...
4
votes
1answer
4k views

What are special prompt symbols for busybox's sh support?

I want to setup a time prompt on PS1. But, there is no document about what are symbols the busybox support. Is there any one know? Here are all which I knew. PS1='\u@\h: \w \$'
1
vote
1answer
196 views

I've moved my root directory accidentally to a folder, can't figure out how to move it back using busybox [closed]

I've moved my root directory into a website folder in /var/www. Have rebooted my server and am now in a Busybox rescue environment where I have found my root files in the website folder that I tried ...