Questions tagged [busybox]

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

0
votes
0answers
9 views

Determining the network interface through which data is sent

I am working on a busybox embedded Linux platform which is running on a imx.6ull based development board. I have written a c++ application which enables the embedded device to collect data from ...
1
vote
1answer
2k views

How to Autorun a program using busybox after boot?

I am using an embedded linux with busybox. I would like to automatically run my app called "myApplication" (runlevel 5 after boot all the services are up). What I have done so far: I made a script ...
1
vote
1answer
25 views

Truncated Syslog on OpenWrt

I configured OpenWrt to send syslog to a remote system. This has been working nicely for a long time, however I was missing logs from nginx. nginx on OpenWrt does not support logging to syslog, so ...
1
vote
2answers
30 views

Busybox: Find all files on partition that have been modified since power-on

I am trying to come up with a Busybox-compatible script (or one-liner) that lists every file inside a specified partition that has been modified since the last power-on. This should include files that ...
4
votes
6answers
5k views

Date in milliseconds on OpenWRT on Arduino YUN

I am using OpenWRT on the Arduino YUN and I am trying to get the exact date in milliseconds (DD/MM/YYYY h:min:sec:ms) by getting the time by an timeserver. Unfortunately date +%N just returns %N, but ...
0
votes
0answers
19 views

busybox / init.d daemon to monitor result of script

I'm looking to run a script upon a GPIO pin being set (button press) on ARM. I do not want to use sysfs. I found a tool (libgpiod) that can read this event. I can run gpiomon and it writes to the ...
0
votes
1answer
26 views

Alpine 3.9.4 update busybox 1.30.0

I am using latest stable version of alpine 3.9.4 image. this image comes with busybox -1.29.3-r10. I need to upgrade to busybox 1.30.0. apk upgrade busybox command not upgrading the package. What is ...
0
votes
0answers
30 views

Linux system process activity suspended

Introduction: I am running a cpp application on an embedded systems device with onboard Linux, which gathers sensor data, prepares it into a JSON formatted string payload and publishes the payload on ...
1
vote
2answers
1k 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 ...
0
votes
1answer
66 views

Ubuntu won't boot [duplicate]

My laptop ran out of power and when I went to plug it in and power it on, Ubuntu no longer boots. I get directed to BusyBox built in shell that looks exactly like: BusyBox v1.27.2 (Ubuntu 1:1.27.2-...
2
votes
1answer
37 views

Pass script to background using script itself

It is possible to do something like this: nohup ./run.sh > /dev/null 2>&1 & Which sends the process to background, discards its output and allows us to close terminal. Is there any ...
2
votes
1answer
2k views

How to correctly stop busybox shell process and child process?

The actual server process is spawned by a shell script I am trying to write an init script for djb daemontools within Entware on a router running busybox 1.24 (ash shell). The daemontools way to ...
3
votes
1answer
3k views

busybox and nfs mounts

As part of a startup a rescuecd uses busybox to mount a nfs share with data, but during the nfs share mount, busybox (version v1.18.2 from systemrescuecd) always fails to mount the nfs share. And i do ...
0
votes
1answer
306 views

Split string in ash shell? (BusyBox)

I'm trying to split a string in ash shell using only the tools provided in BusyBox. The string is of the format host-name:port,host-name2:port2 but I only care about the first hostname and port, both ...
0
votes
2answers
188 views

How can I expand a list of letters/numbers in ash?

In busybox, the default shell is ash, so some familiar tricks in bash are not available. One thing I would like to do is expand a list of letters, like {a..z}, which would expand to a b c d e f g h i ...
28
votes
2answers
3k 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 ...
0
votes
1answer
27 views

Why does docker run busybox timeout not work?

I'm trying to make a script to quickly test whether the network connection works inside docker using busybox. All of these tests failed to timeout after 5 seconds (they took 30 seconds to timeout): ...
0
votes
1answer
58 views

Replacing busybox in an embedded device

I'm using busybox in an embedded device. The built-in busybox is rather limited. So I want try to replace busybox in place with new, more complete version. I find some info about replacing Busybox on ...
2
votes
2answers
5k views

init, syslog and stdout/stderr

I'm trying to build an embedded system with linux. (Means very few resources and not much else than busybox.) I'd like to make sure, that everything is going to syslog. I'm using the newest version of ...
4
votes
1answer
454 views

How to bind to a privileged port from a non-root process, on a Synology NAS

I want to run a custom DNS server (NxFilter to be precise) on a Synology DS115j NAS, which of course binds on port 53. This works when running as root, but I want to lock down the process now. This ...
0
votes
1answer
359 views

df from busybox shows different number of inodes than that of tune2fs

we have Beaglebone black based custom board, we have busybox shell including coreutils. busybox version is BusyBox v1.20.2 (2017-10-16 16:39:36 EDT) now we wanted to check the inode usage in each ...
0
votes
2answers
2k 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 ...
1
vote
3answers
1k views

How to mount USB drive in udev rule?

I setup a rule in udev to run a script in background to automount the USB drive. It managed to run the script fine, but the mounting is failing for some reason. RULE: ACTION=="add", KERNEL=="sd[a-z]*...
1
vote
1answer
50 views

How to test whether my tail is posixly correct?

I'm having problems with a vim interface for the theorem prover HOL: https://github.com/HOL-Theorem-Prover/HOL/tree/master/tools/vim I run it on MobaXterm, a cygwin-based system, and vim is freezing ...
3
votes
1answer
126 views

Where is the PS1 prompt variable set in ash shell?

I have a NAS drive from Western Digital. I can ssh into it, and when I log in, the first line that appears is: BusyBox v1.20.2 (2014-10-30 15:28:59 CST) built-in shell (ash) I don't like the default ...
0
votes
1answer
165 views

ls without --time-style support

I need the same output in FMTIME as in the following command: FMTIME=`ls -l --time-style=+%s $FILE | cut -f6 -d' '` but my Linux (running busybox) does not support ls --time-style. I am running :: ...
0
votes
1answer
456 views

tftp - Error code 1: File not found

I need the correct syntax of tftp to get and put file. My ultimate goal is using busybox tftp (this should be second question), but it failed even trying to test with local Ubuntu tftp client. As you ...
1
vote
0answers
48 views

A more permanent change to readonly squashfs mounted /etc

I have an IP-camera with the BusyBox v1.22.1 operating system that has some accounts either without or with public known passwords that I want to change to make it more secure. I have managed to log ...
2
votes
3answers
4k 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
0answers
1k views

Accessing regular linux commands in Huawei's Dopra Linux

Backstory: I have a Huawei HG8245 router in my house and I want to change the default username/password. I've tried following this guide but the config file always gets reset. My ISP isn't helping ...
0
votes
1answer
53 views

busybox - Can't detect grub binaries

I compiled GRUB from source, using pretty much default settings in a chroot debian sid environment using default --prefix so it installed in /usr/local. When I copied the files over to a system with ...
3
votes
1answer
2k views

Debian installer - customize busybox and live system/environment

I'm trying to reinstall Debian on a netbook and do it without sloppy tricks so that I can repeat the process if necessary. Specifically, I'm trying to customize the installer to include the wifi ...
2
votes
2answers
396 views

date command in busybox not accepting formatted input date

I want to set the date using busybox's date command (BusyBox v1.21.0). My custom date to which I want to set the computer is of this form: Tue, 15 Jan 2019 10:46:13 GMT What my date command is ...
0
votes
1answer
117 views

Set date on embedded linux with limited busybox (no ntp)

I am trying to automatically set a date after boot on an embeddd linux with busybox ( I dont have a RTC). I also dont have ntp command in busybox, nor curl. My wget is very limited too, and I cant ...
1
vote
1answer
498 views

Unable to boot into Zorin OS - ending in BusyBox

I'm running Zorin OS 12.2 (downloaded and installed in September 27th this year) on a Dell XPS 13. I installed Zorin instead of the pre-installed Windows 10 (I'm aware that Dell XPS ships with Ubuntu ...
5
votes
1answer
627 views

Using OGG/Vorbis, is there a way to continue to record to an existing audio file?

I am using Vorbis/ogg to record audio (using arecord and then pipping to oggenc). I have downloaded oggvideotools, which gave me oggCat, which will let me join two previously recorded audio files into ...
5
votes
3answers
267 views

Portable way to invoke tar with a list of files from stdin

I want to create a .tgz from the content of a directory. I also want to strip the leading "./" from the tar'ed content. I had done this as follows: cd /path/to/files/ && find . -type f | cut -...
13
votes
6answers
23k views

Busybox ping IP works, but hostname nslookup fails with “bad address”

I am compiling my own 3.14 kernel. I fear I may have left out some important networking feature to get DNS working. I can't resolve domain names. I can ping my DNS server. I can resolve using that ...
1
vote
1answer
4k views

How do I safely unmount a network share on Linux STB without crashing (I get GSOD)?

I have a network share named dreambox on C:\dreambox that is shared with the group Everyone in Windows. I have mounted it to /hdd on a Linux-based STB with OpenDreambox (OpenEmbedded) using Telnet (...
1
vote
2answers
466 views

How do I enable kernel option MMC_UNSAFE_RESUME

I am trying sleep and wake up my Kobo Mini ebook reader manually by using the command rtcwake. The reader is using busybox. cat /proc/version gives me this output: Linux version 2.6.35.3-850-gbc67621+ ...
1
vote
1answer
80 views

Busybox USB Ethernet adapter

I have an embedded device running busybox on an ARM 7 processor. How would I go about using a USB -> Ethernet adapter for network connectivity? Currently I only have a serial console. The system ...
0
votes
1answer
30 views

nc server does not work if launched on startup

I wrote a (ba)sh script to write to a file the content received from a POST method: #!/bin/sh PORT=$1 FILE=$2 while true do echo -e "HTTP/1.1 200 OK\n\n" | ./busybox-armv7l nc -l -p $PORT | tr '[\...
5
votes
2answers
9k views

Package manager for Busybox

Is there a package manager for busybox devices? After all Busybox utilities are quite restricted. I suppose one would have to compile it for specific device. Since I am asking on Unix/Linux exchange ...
4
votes
2answers
5k 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 ...
4
votes
1answer
2k views

urlencode function

I need a way to URL encode strings with a shell script on a OpenWRT device running old version of busybox. Right now I ended up with the following code: urlencode() { echo "$@" | awk -v ORS="" '{ ...
0
votes
0answers
352 views

Can't close luks volume on android (device busy)

I'm trying to use luks on my phone (android 4.2.2). I can create luks volume, mount and unmount it without problem, but when i'm trying to luksClose it here the problem start ..(in fact i can close ...
3
votes
2answers
995 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 files....
0
votes
1answer
554 views

Why is there no /var/log/kern.log?

I have an embedded system running a slim installation of Buildroot Linux with kernel 3.10.105. Apparently most commands come from BusyBox here, and it seems those do not always implement the full ...
17
votes
6answers
73k views

What overwrites /etc/resolv.conf on every boot?

I was given the files for a mini linux, that boots directly into firefox. It works for all it should be doing, only that I do not get an internet connection. We have 3 DNS servers in the network, ...
10
votes
1answer
11k 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 ...