Questions tagged [busybox]

BusyBox is a single executable implementation of the common UNIX utilities that has been optimized for minimal size.

BusyBox: The Swiss Army Knife of Embedded Linux

BusyBox combines limited versions of the UNIX utilities commonly found in the GNU fileutiles, shellutils, etc. packages into one executable that has been optimized for systems with limited resources (such as embedded systems). The BusyBox tools are not as full featured as their GNU counterparts but they provide the bare essentials and necessary functionality.

BusyBox is also very modular so the developer can only include the features and commands that they need.

References:

636 questions
-1
votes
1 answer

How to get out Busy Box on Raspberry Pi?

I'm stuck in the Busy Box and don't find a way out. Here's what I did: (initramfs) blkid The result: /dev/mmcblk0p1: LABEL_FATBOOT="system-boot" LABEL="system-boot" ... TYPE="vfat" ... /dev/mmcblk0p2: LABEL=writable ... TYPE="ext4" ... What I then…
-1
votes
1 answer

mkdir and mount in initramfs

I am writing an initramfs, executed in busybox, in which I mount a partition using those commands: /bin/busybox mount -n -t proc proc /proc mount -n -t devtmpfs devtmpfs /dev mount -n -t sysfs sysfs /sys mount -n -t tmpfs inittemp /mnt mkdir…
Stéphane Veyret
  • 1,791
  • 1
  • 8
  • 15
-1
votes
1 answer

How to detect a file type on busybox

Busybox does not include the traditional linux "file" commad. Is there any alternative way to detect whether a file is binary or ascii? Thanks
evg
  • 47
  • 4
-1
votes
1 answer

How do I recover files that disappeared after wrong MV command format?

I'm trying to move files from the current directory to another directory by date, but I accidentally used the wrong target format: find . -maxdepth 1 -mtime +365 -type f -exec mv "{}" "..\folder" \; instead of find . -maxdepth 1 -mtime +365 -type…
StR3aK
  • 9
  • 2
-1
votes
2 answers

busybox tar ignores fakeroot on Ubuntu but it works on OS X

On my mac machine this just works as expected: #!/bin/sh -euf touch test.sh chown 888:888 test.sh busybox tar -czvf out.tar.gz test.sh Invocation: $ fakeroot -- ./generateArchive.sh $ busybox tar -tzvf out.tar.gz -rw-r--r-- 888/888 0…
Marco
  • 7,007
  • 2
  • 19
  • 49
-1
votes
1 answer

Executable works on compiling machine, not on 2nd machine

I have 2 systems; a OpenWrt and a Busybox. I'm trying to compile a simple gcc executable on the OpenWrt, to copy it and run it on the Busybox machine. They seem to have very similar CPU so I assume my plan should work. root@OpenWrt:/# cat…
EDP
  • 309
  • 1
  • 6
  • 18
-1
votes
2 answers

SIGHUP signal handler reset to default when using system() on embedded linux with busybox

I am working on an embedded linux with busybox. As part of my application I have a rc.init script E80-startmyprog. That script is calling my program prog. trap "" HUP startmyprog >${LOGFILE} 2>&1
Werner Henze
  • 16,404
  • 12
  • 44
  • 69
-1
votes
1 answer

How can I parse output of Busybox's gzip?

I want to use gzip from Busybox v1.20.2 to extract a .tar.gz file to standard output then read it into my app and parse it. But the .tar.gz contains multiple files, some in subdirectories. I can see the output contains the filenames and the contents…
parsley72
  • 8,449
  • 8
  • 65
  • 98
-1
votes
3 answers

Run ".jar" through shell

I am making an android application that aims to run a .jar file that's a java7 based console application. Could someone direct me on a way I can run this file with a shell command within my application's code?
user192198
  • 11
  • 4
-1
votes
1 answer

Catch word after specific word in a string with -ash

get_channel() { local wifidev="$1" set -- $( iw dev "$wifidev" info ) # e.g. 'Interface wlan0 ifindex 6 wdev 0x2 addr 10:6f:3f:0e:31:8e type IBSS wiphy 0 channel 11 (2462 MHz) NO HT' case "$@" in *" channel "*) …
Bastian Bittorf
  • 447
  • 4
  • 6
-1
votes
1 answer

Getting root on a Sony TV?

I recently read this post over at Hack a Day Getting root on a Sony TV, which uses a script that can be found here for use on Sony Bravia TVs. The script uses BusyBox and my question is based on the README found here. I have two questions about…
user753986
-2
votes
2 answers

Get gdb binary for BusyBox under i386 architecture

Where i can get binary file of GDB debugger for BusyBox under i386 architecture. I tried to build it from source, but unsuccessful. When i run gdb on my controller - all normal, but when i start debug simple hello world c application i have the…
G-71
  • 3,626
  • 12
  • 45
  • 69
-2
votes
3 answers

Replace Mulitple Lines Greedily With BusyBox

Given the following input file: text text pattern2 pattern3 text text pattern1 pattern2 pattern3 pattern2 pattern3 pattern2 pattern3 text text I need to search for "pattern1" and then I need to replace the first occurrence of "pattern2" and…
Harry Muscle
  • 2,247
  • 4
  • 38
  • 62
-2
votes
1 answer

what is daemonize? I can't understand it

I'm reading the helper page of busybox's httpd. In the page, there is an description about option f. "-f Don't daemonize" But I can't understand what the "daemonize" means. Could you explain what it is? I searched it on google. But it can'help…
-2
votes
1 answer

Trying to mount /dev/sda in busybox

I'm using Proxmox VM's. Doesn't seem to matter what storage type I choose (scsi, ivirt, or sata), I don't see any block devices (i.e. under /dev or with fdisk) in busybox. I used these instructions to get PXE to a busybox…
thistleknot
  • 1,098
  • 16
  • 38
1 2 3
42
43