Questions tagged [busybox]
The busybox tag has no usage guidance.
106
questions
0
votes
1
answer
61
views
busybox crond avoids concurrent processes for first 10 minutes?
I have a script that's executed every minute by cron in an Alpine container. Said script may run for long time, which is why it handles locking itself.
Just now I noticed the busybox' crond avoids ...
0
votes
0
answers
50
views
busybox man pages paths
Is there a standard path where BusyBox searches for man pages? I remember having read something about this, but I can't find where it was. I am asking here and not in the unix/linux forum because I am ...
0
votes
0
answers
58
views
NVIDIA Shield Pro rooted using wget to download Dropbox File
Sorry, but probabely I am blind, or lost the track. I have rooted a NVIDIA Shield Pro 2019 running now Lineage OS 17.1.
I have installed BusyBox v1.34.1-meefik. I am trying to download a file from my ...
0
votes
0
answers
67
views
Can FiOS router operate a tunnel?
I'd like to link up two locations with a secure tunnel.
On one side the router is running DD-WRT, which supports Ethernet over IP (RFC 3378), Wireguard, and MicroTik tunnels.
On the other side is a ...
0
votes
1
answer
3k
views
Why does busybox ping expect root?
Why does busybox ping expect root?
$ ping dec.com -c1
PING dec.com (216.239.32.21) 56(84) bytes of data.
64 bytes from any-in-2015.1e100.net (216.239.32.21): icmp_seq=1 ttl=119 time=54.9 ms
--- dec....
0
votes
0
answers
86
views
Linux System goes back to vendor's default config after reboot
I hope everyone is 0k.
I have embraced Linux systems for around 3-4 years now, I am not what you called an expert nor a rookie.
Anyway, I have a NAS device running BusyBox v1.20.2 - Linux version 3.2....
0
votes
2
answers
320
views
How to remove Busybox after uninstalling Linux
After trying out linux for a week, I decided to switch back to Windows because of the apps I use daily.
Yesterday I decided to completely reinstall windows for whatever reason, and I noticed the linux ...
0
votes
1
answer
5k
views
Getting logger to log to rsyslog in alpine
I installed rsyslog on my Alpine-based system to replace busybox syslogd. After completely disabling syslogd in openrc, enabling ryslog at boot and rebooting, all services correctly started logging to ...
0
votes
0
answers
252
views
How to wipe my hard drive on busybox? Messed up trying to install galliumOS with unetBootIn,
So, I am using my school computer to make my flash drive bootable so I can install galliumOS on my personal computer which is a chromebook. I used unetBootIn to make my flash drive live and it ended ...
1
vote
0
answers
111
views
ZFS modules suddenly stopped loading - Debian 10
My ZFS modules have mysteriously stopped loading at the point during boot when you would usually unlock the pool with encrypted ZFS on root (Debian 10). It drops into busybox and suggests loading the ...
0
votes
1
answer
213
views
Let ash pick up /home/user/.profile when invoked as non-interactive shell
I have an Alpine-based container that offers sshd for an account user. The container's /home/user/.ssh/authorized_keys invokes a specific command:
command="ash -lc /usr/local/bin/command.sh" ...
0
votes
0
answers
2k
views
Possibly broken WAN port: how to verify and how to work around?
Is it possible to say for sure if the WAN port is dead? The green LED blinking is inconsistent and happens while connection and some time after, for me it looks like working.
The context: when I ...
0
votes
2
answers
246
views
unable to boot due to moved root directory
I'm currently running ParrotOS in VMWare Workstations 15 Player. Running uname -r returns 5.5.0-1parrot1-amd64.
I was testing some py code that managed files in a subDirectory under ~/Downloads/htb/...
0
votes
2
answers
783
views
Oldest file in directory tree matching pattern
I'm looking for a good portable way of finding the oldest file in a directory tree matching a pattern, explicitly without using find's -printf option.
So far I found this solution: https://superuser....
1
vote
2
answers
272
views
View long output in initramfs busybox shell
My Ubuntu is dropping to an initramfs shell on boot. I'm trying to diagnose the problem but some of the commands are producing results that flow out the top of the screen.
I tried less but that's not ...
0
votes
1
answer
588
views
loop through a list without array in shell
I'm trying to write a short shell script to loop through a list (given by a certain command I run) line by line and push values to CSV file
a
list for example:
aaa bbb ccc ddd eee fff
jjj ...
1
vote
1
answer
3k
views
shell script loop through list line by line
I'm trying to write a short shell script to loop through a list (given by a certain command I run) line by line and push values to CSV file
list for example:
aaa bbb ccc ddd eee fff
jjj ...
0
votes
2
answers
1k
views
"Access Denied" as root
I have connected to my wireless router via telnet as root. It runs on linux kernel and has busybox.
/ # cat /proc/version
Linux version 3.4.110 (root@A23176683) (gcc version 4.7.2 (Buildroot 2013.02) ...
1
vote
1
answer
844
views
Installing tarballs on Busybox
I want to preface this with I am new to Linux. I am trying to install some libraries (and a program that depends on them) on an embedded Linux server running Busybox v1.20.2. I am not able to run ./...
1
vote
1
answer
244
views
Allowing internet access overt ppp0 from eth2
So i'm trying to set up access over a hotspot to internet via a ppp0 interface (similar to a 4g dongle).
I've setup the default route with highest priority (Metric 1) for ppp0.
Set all iptable ...
1
vote
0
answers
2k
views
how to update Busybox commands by modifying /lib and /bin directly?
I am developing on a router from Advantech that has manufacturer's firmware built with BusyBox and LTIB. It's built with bare minimum commands, and I want to extend the commands to meet some needs. ...
0
votes
1
answer
368
views
terminal freeze after reboot command
In my customized embedded linux kernel 4.x.x, when reboot command(implemented in busy box) is given, it freezes the console/terminal and hangs. however linux is still accessible from other terminals.
...
0
votes
1
answer
3k
views
How to Add Something Extra to a Busybox System?
So suppose that I have Busybox installed on an embedded device (e.g a router) and need to add something extra to it (a package). Now suppose that now I need to install a package to it besides using ...
0
votes
1
answer
49
views
Truncate short day names in variable
I have a variable with short day names, it can be in any order, with less or more week days, always comma separated like this:
days='Tue,Wed,Thu,Fri,Sat,Sun'
How can I cut the last letter from each ...
1
vote
0
answers
440
views
Yocto Build Error
I am building images(yocto,bitbake,busybox) for two differnt karo SOM's. Both of the configuration files are the same (including my own software)
One build fails during the QA portion of the build ...
0
votes
1
answer
522
views
Bash scripting: how to iterate through all drives?
I have buildroot readonly bootable image, which is normally loaded via TFTP in PXE enviroment. Filesystem in unpacked into ram and remounted as rw. And accidentally I wished to boot it from a USB ...
0
votes
1
answer
135
views
No file sourced in non-login shells
In login shells, no problem : /etc/profile and ~/.profile are sourced. But in non-login shells (xterm in XOrg), they aren't. The $HOME variable isn't even set.
I'm using Fluxbox and the Bourne shell (...
0
votes
1
answer
403
views
Boot automatically into Debian instead of busybox/initrd?
I'm using an old TS-7500 (https://www.embeddedarm.com/products/TS-7500) rugged platform for a home automation project (it was a freebie from my college) and I want to get the platform to boot into the ...
0
votes
1
answer
962
views
Extract line from file in .tar.bz2 Archive
I'd like to use stdin/stdout on a single line to display the version from a file within a .tar.bz2 archive without affecting the existing archive or leaving any temporary files behind. The file only ...
0
votes
1
answer
505
views
Busybox filter string list
Consider I have a list like this:
list='item1.service item2.service item3.target item4.service'
I need to filter this list to get something as:
item1 item2 item4
So, there are two things to notice:...
2
votes
1
answer
2k
views
Busybox Recursive Non-Overwriting File Copy?
How do I do a recursive file copy to copy any missing files without overwriting? (Busybox cp has no -n option and no rsync.)
The line below would be fine if the overwrite n response was automatically ...
-1
votes
1
answer
766
views
Parsing JSON with BusyBox tools
I have a POSIX-compatible install script which determines the latest version of some software by grepping info from a json blob retrieved from a software registry:
meta=$(wget -qO - https://registry....
0
votes
1
answer
541
views
Instal and setup IKEv2/IPsec on WD PR4100
I have a WD PR4100 NAS and would like to set up a IKEv2/IPsec VPN tunnel. Currently, I am using OpenVPN as it is installed.
I believe the system is BusyBox based. Any suggestions on how to install ...
6
votes
6
answers
31k
views
moving files and folders to a subfolder
I would like to move all files and folder from one directory to one of its subfolders. How do I do that?
I am using BusyBox and linux.
ex:
move all files and folder in /my/path/ to /my/path/...
1
vote
0
answers
608
views
How to configure a listening-only NTP client?
I'm creating an advertisement display, based on RaspberryPi (no real time clock present) and piCore, which is busybox-based tinycorelinux. It will be behind a firewall, and even within its own network ...
0
votes
0
answers
454
views
Do scripts 'block' when executed from rcS?
I'm using Busybox (ash), which at startup runs rcS, which in turn executes, in numerical order, all the S?? scripts in /etc/init.d
Does this script wait for completion before execution the next? Or ...
1
vote
1
answer
612
views
IF block statement in inside an execlineb script
I have a Docker Container based on Alpine which runs S6 Overlay to manage two services inside it (a music DB, and a web interface to manage it). The problem is that the second service is optional, and ...
1
vote
0
answers
5k
views
Implement a reverse shell on busybox?
Scenario:
You telnet in, you double tab and find these are the available commands.
IPv6-relay ipaddr preinit
acl_logd iplink ps
acos_init ...
0
votes
1
answer
1k
views
BUSYBOX: How do I check if I have a 32 or a 64 architecture?
I am on a Busybox and uname –a results: Linux 3.14.28-1.12 #1 SMP Thu Jun 15 08:53:06 CEST 2017 armv7l GNU/Linux. Is this a 32 bit architecture or how can I check it?
2
votes
1
answer
342
views
Determine if a user exists on ESXi (Busybox)
I'm writing a shell script in which I need to check if a given user exists. On most Linux systems, I can use:
id -u ${USER} 2>&1 || die "User ${USER} not found"
or
getent passwd ${USER} 2>...
2
votes
0
answers
2k
views
PPP: Modem hangup on IPCP negotiation
First of all, sorry for the question if it is obvious, I'm not very good at network configuration.
I'm currently trying to connect a Linux machine with Busybox through a modem to a cellular network (...
1
vote
0
answers
2k
views
busybox' udhcpc can not be killed
On an linux device using busybox I use the following /etc/network/interfaces
...
# Wired interface eth0 is using dhcp, enabled while system start
auto eth0
iface eth0 inet dhcp
pre-up [ -n "$(cat ...
0
votes
1
answer
512
views
ubuntu boots into busybox tried one of the following but didn't work
right before it boots into busybox i caught this error error: failure reading sector 0xbffc from hd0 I tried one of your suggestions i typed root=/dev/sda1 but it still boots into busybox
I tried ...
0
votes
2
answers
2k
views
How do I use find and execute a command for each file in Bash shell?
I tried the following, which normally works in Bash:
root@nycmesh-eb94:/etc# find . -exec grep eth0 {}\;
find: -exec requires an argument
root@nycmesh-eb94:/etc# find . -exec 'grep eth0 {};'
find: -...
0
votes
0
answers
132
views
Linux BusyBox files
Do someone know which is the file (and where is it located) that is executed when BusyBox is turned on ?
Also, which is the file (and again, where is it located) that is executed when you connect to ...
0
votes
0
answers
132
views
Linux/BusyBox multimedia Server
I bought an EMTEC Movie Cube Q8000 some years ago. Now it has no use, and I have recently realize I can use it as multimedia server. It is a Linux/BusyBox system. I changed a file so now the NAS mode ...
1
vote
0
answers
216
views
Debugging inetd issue on BusyBox
I'm having issues with connecting via FTP to an embedded ARM system running BusyBox on Linux 2.6.
When I try to initiate a session, inetd correctly spawns a ftpd process, but it does not respond to ...
1
vote
1
answer
984
views
How to grep literal match in list of domains
I have a hosts file full of hosts, like so:
127.0.0.1 home-domain.net
127.0.0.1 here.home-domain.net
127.0.0.1 home-domain.netn
127.0.0.1 home.domain.net
127.0.0.1 home.domain.net.some
In an ash ...
0
votes
3
answers
375
views
Why does less +F say "can't open '+F'"?
I just read about the advantages of using less +F over tail -f and wanted to try it out. When I do I get the following:
less +F /log/nginx_error.log
less: can't open '+F': No such file or directory
...
4
votes
0
answers
612
views
BusyBox Tar shows different ownership than GNU Tar
UPDATE: I discovered that I could view/extract with the original permissions using the "--numeric-owner" flag on GNU Tar. However, I'd still like to understand exactly what tar is doing here, as it's ...