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

learn more… | top users | synonyms

4
votes
3answers
30k 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
3answers
88 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; ...
1
vote
2answers
32 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 /). ...
1
vote
2answers
368 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
2answers
1k 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 ...
3
votes
1answer
305 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 ...
1
vote
1answer
128 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 ...
1
vote
1answer
50 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
1answer
33 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 ...
1
vote
1answer
89 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 init.d/...
0
votes
1answer
47 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 ...
0
votes
1answer
663 views

Monitoring network connectivity in Busybox/embedded Linux

I have an embedded Linux/Busybox system that needs to monitor its own network connectivity. I'm trying to figure out if the device is "all alone" on the network for more than say 10 minutes, and take ...
4
votes
0answers
921 views

Number comparisons in BusyBox ash

I have the following script that extracts data from the EXIF command on my BusyBox ash-based system. I parse the date tag from the end of the file and use case as a final check to ensure the format ...
2
votes
0answers
24 views

Predictable partition name for squashfs partition in initramfs

TL;DR: How can I boot a squashfs partition from initramfs with a predictable partition name? /dev/sda2 won't work because the device names get reordered randomly and sometimes it will boot from the ...
2
votes
0answers
255 views

how to migrate a squashfs system to another filesystem that's read/write

Well, basically what i want to do is copy all of my router's files (even the dev file (because i'm running busybox)) to my usb flash drive and let my router by default boot from the usb device. it ...
2
votes
0answers
486 views

Why is my /etc/hosts.deny file being ignored?

I am using a small embedded linux setup generated by buildroot to run on a x86 device. It was generated to use busybox init system and also runs dropbear so I can ssh into the device. I wanted to ...
2
votes
0answers
486 views

System cannot boot, continiously scanning btrfs filesystem

On the previous boot I installed HAL to make amazon prime video streaming work, which it did (mostly), but after reboot the system could not pull itself up all the way to BASH and drops to a failed ...
2
votes
0answers
1k views

Check if Keyboard and Mouse are plugged in

Is there a way to detect if a keyboard and a mouse is plugged in (and working) in Linux? This will be embedded in a PXE setup, so I only have Kernel + Modules and Busybox available. Bonus question: ...
2
votes
0answers
132 views

Busybox exits instantly printing 'SIGUSR1'

I was tinkering with my router these days. It runs on MIPS core and the OS is based on Linux. But the builtin busybox is very limited. I managed to export a binary of busybox compiled for MIPS through ...
2
votes
0answers
792 views

Run script as root under Busybox?

I have written a shell script that has to be run as root under Busybox. My first thought was to add the script to /etc/busybox.conf like this: /sbin/my_script.sh = ssx root.root But this only works ...
1
vote
0answers
20 views

How to automatically switch between DHCP Server and Client mode on startup of several devices?

I do wan't to have several embedded devices to boot up at the same time and automatically select the first booted device as the dhcp server and the others as client. But every client can be the server ...
1
vote
0answers
26 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 (...
1
vote
0answers
56 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
0answers
57 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 ...
1
vote
0answers
192 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 <TAB&...
1
vote
0answers
164 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 ...
1
vote
0answers
68 views

Using vanilla + busybox Linux kernel, how to check if partition is encrypted?

I have a networked drive that runs off vanilla Linux Kernel, and ultra-minimalist BusyBox, on a Ralink SoC custom CPU. It has SMB inside, Telnet access, as well as HTTP server. Even basic commands ...
1
vote
0answers
364 views

Limit transfer speed rate by Iptables Rules

I have D-Link Router DSL-2730U that support busybox OS and iptables version 1.4.0 I managed successfully to block the host for being connect to the internet using the following command block by ip ...
1
vote
0answers
4k views

@ERROR: chdir failed but directory exists

I have a D-Link DNS-320 and I've installed FFP and I'm trying to get rsync running on it. So far I've got the daemon up and running and I've defined a module in my rsyncd.conf like so: max ...
1
vote
0answers
426 views

OpenEmbedded: root account doesn't exist!

I'm using the current OpenEmbedded system from: http://git.openembedded.org/openembedded-core/tree/ (For what it's worth, I'm also pulling in layers from http://git.openembedded.org/meta-openembedded/...
1
vote
0answers
482 views

How to properly start and stop shell script in linux, busybox?

I am trying to write a small shell script that would send some commands to my tv set from my set top box that has busybox on it. The problem is that it generates huge amount of zombie processes, and ...
1
vote
0answers
239 views

Looking for a list of modules that are used during boot sequence

I'd like to use deferred init calls. This function allows to load modules in userland, that should actually be loaded during the boot sequence. Just for testing I'd like to modularize as many entries ...
1
vote
0answers
218 views

Broken pipe with busybox

I have written a script which executes in init-bottom within the initram. So it uses busybox for the commands. I included gzip from my distro to initram (gzip 1.5 went to /bin). This is causing a "...
1
vote
0answers
56 views

Linux shell lagging one step

I upgraded busybox from 1.2.1 to 1.7.4 in my embedded system platform and it is connected to linux host via serial cable. Now when I type any command in shell on that embedded system platform like ...
1
vote
0answers
848 views

Busybox `uname -r` shows wrong kernel version

My kernel is 3.2.27 and /lib/modules/ contains 3.2.27 + folder. But when I am using /# uname -r 3.1.9+ It's showing a strange output. My problem is that for modprobe depends on uname when I put /...
0
votes
0answers
23 views

How to compile wget or curl with https support statically on armv5tejl?

I have an IP camera with BusyBox. It has armv5tejl architecture When I want to use wget to download something from https://.... When I try to use it with https I get an error: wget: not an http or ...
0
votes
0answers
16 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
33 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
0
votes
0answers
274 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 17:28:...
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
0answers
40 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
0answers
302 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
0answers
478 views

Auto login into router running Busybox

My router runs Linux with embedded Busybox. I'd like to autologin and run a web browser. Here is the /etc/inittab file: # /etc/inittab init(8) configuration for BusyBox # # Copyright (C) 1999-2004 by ...