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
7
votes
3 answers

How to check if currently running shell is BusyBox

I tried different variants echo $0 echo $shell echo $SHELL ps -p $$ but none of them can give a distinctive output. I can do something like this but it's ugly and hackish: if ls --help 2>&1 | grep BusyBox; then echo "it is BusyBox" else …
svlasov
  • 9,923
  • 2
  • 38
  • 39
7
votes
0 answers

Launching Linux from Busybox (pivot_root or switch_root, or ? )

On a beaglebone hardware, I want to start on a partition with a minimalist busybox system (/dev/mmcblk0p2), run some checks on the 2 other partitions (/dev/mmcblk0p5 & /dev/mmcblk0p6) containing more complete Linux systems (Angström), then start on…
Stéphane
  • 113
  • 1
  • 2
  • 5
7
votes
2 answers

How do you change a user password in a script with busybox and openssl?

I need to synchronize a user account and password to an external source on a system with busybox and openssl installed. When the external source tells my system to update credentials, how do I change the user's password in a script? I will have…
indiv
  • 17,306
  • 6
  • 61
  • 82
7
votes
3 answers

busybox in embedded linux shows "applet not found"

I compiled busybox myself,and I put it in our embedded linux. But I have some questions. Question 1:When I try to use some command such as gzip,it prints "gzip: applet not found".While I checked the menuconfig of busybox,I make sure that I've…
Ezio
  • 1,116
  • 4
  • 13
  • 25
7
votes
2 answers

Busy box, Run C, python or Perl programs

All I have is bourne shell and busy box. Is there any way to run a python script or compile a c program or any languages like perl .. like busybox python eatmemory.py 100M or busybox gcc eatmemory.c What I need is to create a process which will…
limovala
  • 459
  • 1
  • 5
  • 16
7
votes
7 answers

Add/subtract variables in a really dumb shell

I am writing a shell script which works on my local /bin/sh fine (dash on Ubuntu 13.04), but I unltimately need to run it on a dumb box where I'm getting an error because of an operation on variables: $((n2 - n1 + 1)) doesn't work, I get an error…
wim
  • 338,267
  • 99
  • 616
  • 750
6
votes
1 answer

Android Install apk using busybox command-line

I want to install apk silently in android phone, I have found this solution (Link), is how to install apk using busybox command line, but when i tape busybox install path/to/apkfile, it does not work, can someone help me by giving some examples…
user820688
  • 719
  • 2
  • 13
  • 27
6
votes
3 answers

Buildroot error when building with Ubuntu 21.10

I am trying to compile linux for RISCV Arch using buildroot(busybox). I was using 18.04 and 20.04 previously and had no issues compiling it. Right now, I have upgraded it to 21.10 for building some other stuffs. I have moved my toolchain and I can…
turbo
  • 87
  • 2
  • 8
6
votes
1 answer

Gitlab CI: Execute own Script in Kaniko Job

I have the following Job to build Images in my gitlab-ci.yml dockerize: stage: containerize before_script: - eval $($CONTEXT_SCRIPT_PATH) environment: name: $CONTEXT url: XXX image: name:…
6
votes
1 answer

How to get ISO8601 seconds format from "date" in busybox?

Without adequate examples I keep going around in circles to get the 'seconds' version of iso8601 printed out by 'date'. Please look at the help that is provided with date with busybox 1.22.1. I can't seem to understand the syntax required. Examples…
nndhawan
  • 597
  • 6
  • 24
6
votes
2 answers

Docker Busybox container add groups and user

I need users in my docker containers. My build is from the busybox image which is missing groupadd, I tried to add it using apt-get but that's also missing. What do I need to add to my Dockerfile to get groupadd? So far I have FROM busybox RUN…
OrigamiEye
  • 864
  • 1
  • 12
  • 31
6
votes
1 answer

Busybox env does not show LD_LIBRARY_PATH

We are using linux on an embedded system that has busybox 1.20.2 for the various shell commands. We are having a very strange problem in that env does now show the value of LD_LIBRARY_PATH: $ export LD_LIBRARY_PAT=/usr/bin $ export…
David
  • 61
  • 3
6
votes
4 answers

how to install busybox in android using adb

I am trying to install busybox on an android emulator. I downloaded and compiled busybox and have the busybox binary on my pc. i then did adb push busybox /data/local/tmp then did adb shell, then #cd /data/local/tmp , then #chmod 777 busybox, then…
Santhosh
  • 9,965
  • 20
  • 103
  • 243
6
votes
3 answers

How to match regexp with ash?

Following code works for bash but now i need it for busybox ash , which apparrently does not have "=~" keyword="^Cookie: (.*)$" if [[ $line =~ $keyword ]] then bla bla fi Is there a suitable replacement ? Sorry if this is SuperUser question,…
user3155036
  • 147
  • 1
  • 3
  • 10
6
votes
2 answers

Getting output from busybox commands within Android app

For the life of me, I can't get my app to get the response from a process calling busybox from within su shell. I've tried three different methods, as well as tried a combination of the three to get it to work, but I can never get the output from…
z3nful
  • 81
  • 1
  • 8
1 2
3
42 43