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

learn more… | top users | synonyms

1
vote
0answers
5 views

Trouble with linked libraries when installing mediainfo

I have mediainfo installed on a linux machine running busybox, but when I run the mediainfo command, I get the following output: mediainfo: /lib/libstdc++.so.6: no version information available ...
0
votes
3answers
55 views

Efficiently compare If variable exists and is not equal

I have a problem with the sh script syntax. I wrote a script for my Asus router. The script works perfectly. But I have this line: if [[ "$OldIP" && "$StartIP" != "$OldIP" ]]; then echo OK; ...
2
votes
1answer
31 views

Compiling a kernel on STLinux

I have recently accessed STMicroelectronics Base Distribution with BusyBox v1.18.2, built-in shell. I read all the information on STLinux documentary regarding my problems, and followed all the ...
1
vote
2answers
54 views

Top command output explanation (in embedded system)

Can someone please help me understand the output that I get from the top command? This is the point that the oom-killer is invoked and kills my main application. What exactly is under the VSZ and ...
0
votes
1answer
26 views

How to “export” configuration variables and “source” them on embedded Linux?

A router runs firmware containing BusyBox and in addition to flash memory the device has secondary memory storage. That USB stick is mounted at both /media/Main and /opt: # mount | grep sda /dev/sda1 ...
1
vote
1answer
27 views

When in the fallback shell, how do you start init?

I booted my system using in grub : linux /boot/vmlinuz-4.5.0 root=/dev initrd /boot/initrd-4.5.0 I set root to dev to specifically not get it to boot correctly. Of course it falls back to the ...
3
votes
1answer
45 views

How do I set up busybox to allow a non-root user to set the date?

I have an embedded system built with busy box. I allow a user named "app" to download a program/script to a directory and it will be run on boot. The program should be allowed to set the date. It ...
0
votes
1answer
23 views

Name resolution in busybox

I have a statically linked busybox and want to be able to write busybox telnet foo. How do I specify the address of "foo"? Do I really need /etc/nsswitch.conf and the corresponding dynamic libraries, ...
20
votes
2answers
2k views

Are BusyBox commands truly built in?

I was reading the famous Unix Recovery Legend, and it occurred to me to wonder: If I had a BusyBox shell open, and the BusyBox binary were itself deleted, would I still be able to use all the ...
1
vote
2answers
28 views

Load old Ubuntu Linux after fresh Linux Mint install

I had Ubuntu and time ago I installed Linux Mint. During installation there was no option for alongside install, so I chose the manual option for the install to empty the partition (mount point /). ...
0
votes
0answers
10 views

is `blockdev --flushbufs /dev/mmcblk0p1"` blocking call?

I am using blockdev --flushbufs /dev/mmcblk0p1 in onf the shell script and would like to know if this command doing blocking call or not? I see it from man page that it is ioctl call to the block ...
0
votes
0answers
18 views

How to replace GNU core utilities with Busybox in a Linux system [duplicate]

Is it possible/safe to replace the GNU coreutils with Busybox in a GNU/Linux system? What else (binutils, bash) could be replaced? How much free disk space would I get with that? If possible, give ...
0
votes
0answers
21 views

Dynamic mdev ifup and ifdown of network interface

Is it possible to have an mdev.conf rule that would run ifup on device creation and ifdown on detach? i.e. eth[0-9] root:root 660 @ifup $MDEV | $ifdown $MDEV
1
vote
2answers
113 views

How to make a minimal bootable linux (only with terminal) from kernel source code? [duplicate]

I want to make a very minimal linux os which only have a terminal interface and basic commands/applications (busybox is my choice for commands/apps). I don't want the installation option on my os. I ...
0
votes
2answers
73 views

shell script - subtract 1 from hexadecimal mac address and add colons to it

I have mac address as 'C4:B9:83:7F:FF:AC' and I want to subtract 1 from its hex values which is C4B9837FFFAC so it will become C4B9837FFFAB and after this I again want to add colons to make it ...
1
vote
2answers
44 views

how to delete (or keep) certain file extensions using busybox find?

I have a folder which contains files (various file extensions) and subfolders. I want to keep certain file extensions and delete the rest. e.g. keep all .txt and .jpg files and delete all other ...
1
vote
1answer
93 views

How to get BusyBox udhcpc to run in background forever?

I would like to configure eth0 on my BusyBox based Linux system to try and get a DHCP lease for 5 times, then run in the background forever if it doesn't get an IP after those 5 tries (i.e. does not ...
1
vote
1answer
61 views

Debian: Boot fails when mounting sda with “invalid argument”

I am trying to move a Debian squeeze installation to VMWare VSphere 5.5 environment. However when booting the new machine after replication, the initrd/busybox gives an error, that it cannot mount the ...
2
votes
1answer
106 views

Set environment variable (TZ) for all startup scripts and inittab

I'm working on an embedded Linux system and looking for a way to set the time zone for all processes. The question is: Is there any possibility to set the TZ environment variable at boot time (init ...
1
vote
1answer
32 views

How can I check the first process that is run? I can see both init and linuxrc in root folder

I get a modified Linux installation on QNAP x86 based NAS. In the initrd image file, I noticed there are both a init script /initand a symbolic link that points to a different program(busybox): ...
1
vote
0answers
40 views

Make changes to busybox/initramfs that are persistent?

I am in the process of recovering my 32-bit Debian Jessie box with a lvm+LUKS disk. I am coming back from a system that had a root partition but no boot partition. Grub executes, but either vmlinuz or ...
1
vote
1answer
29 views

Busybox ASH inside initrd has a problem when piping tee to sed

I'm trying to log the early boot output from the init script. This is what is working: mkdir -p /run/log && \ mkdir -p /tmp && \ mkfifo /tmp/stage-1-init.log.fifo1 && \ mkfifo ...
2
votes
1answer
135 views

How do I install another distro on a linux DVR

I was fiddling with an old DVR and discovered it had telnet unblocked. So I ran ncrack and after gaining access started looking around. It seems to be running some custom version of Linux. Not many ...
2
votes
2answers
69 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 ...
0
votes
0answers
71 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
1answer
19 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
40 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
167 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 ...
0
votes
0answers
221 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
0answers
56 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
1answer
40 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
0
votes
1answer
138 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 ...
1
vote
0answers
46 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
0answers
32 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?
0
votes
1answer
81 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
170 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
145 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
521 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 ...
0
votes
0answers
252 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 ...
0
votes
2answers
493 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
2answers
112 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
278 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 ...
2
votes
1answer
647 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
81 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
112 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 ...
1
vote
1answer
109 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
1answer
385 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
177 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
1answer
266 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
229 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 ...