busybox

busybox sh wrapper to add extra functionality

I need a simple busybox sh wrapper which will do: IF "-Q" PARAMETER IS PROVIDED THEN acommand ALL PARAMETERS BUT "-Q" 2>&1 1>/dev/null ELSE acommand ALL PARAMETERS FI Parameters may include spaces. BTW I want to run the script with busybox sh and it doesn't support arrays. ...

How do I get $(/bin/printf -6) to return -6 and not think -6 is an option.

I have a bash shell script which has the line: g=$(/bin/printf ${i}) when ${i} contains something like -6, printf thinks its being passed an option. It does not recognize the option so produces an error. if wrap ${i} in quotes, printf still thinks its being passed an option. g=$(/bin/printf "${i}") if I escape the quotes, variab...

ASP.NET MVC Busy Box Implementation

I'm wondering if anyone has created a generic "busy box" type control for ASP.NET MVC. Basically something that popups (disables the screen) while the page loads (or redirects). ...

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 the password in plain text. This has to be automated, and from what I can tell busybox pass...

Ash (shell provided by busybox) tutorial

I found that the busybox's ash syntax is different from the other standard shells (sh, bash, tcsh). Is there any documentation of its syntax or a tutorial for ash ? ...

My busybox does not execute non-applet utility commands

I installed the latest busybox to my new embedded project. It runs OK until I try to put dropbear in my application. The busybox shell complains that dropbear is not found although "which dropbear" command gives me the correct answer "/sbin/dropbear". If I change its mode to RW, it complains that dropbear is not executable. I have tried ...

Linux file installer for a file that runs on start up.

My goal is to use a script that will install an executable file on Linux (Busybox variant). The target file should run when the computer starts, so in the rc.sysinit file, I'll have a line like the following: /usr/bin/foo & Now, when I run the install script, that line may or may not already be present (depending if the file had been ...

busybox shell refuses to execute the particular line of script

Hi, I am using busybox shell to execute a script which the bash executes when i boot linux using the nfs. Please let me know the correct alternative for this line. cur_major=$((0x`stat -c %t $dev 2>/dev/null`)) The busybox throws in an error saying "0x" syntax error, which i understand is the problem with the syntax of this line. Th...

Shared library linking and loading in BusyBox 0.61

Does anybody know how the dynamic linking and shared library loading works in BusyBox 0.61 ? I can't seem to find how this is done. There's no 'ld' present on the embedded system I'm dealing with, nor is there an LD_LIBRARY_PATH variable set anywhere. My motivation for this is to be able to create a symlink in the /lib directory to ano...

Avoiding jagged text when pasting into vi?

Hello Although I have no problem using SecureCRT (5.1.2 build 274) to work from Windows and connect to PC's running Linux, I have a problem when connecting to an embedded Asterisk appliance that provides"vi" through BusyBox 1.4.1 (2008-03-10). The issue I'm having, is that when I paste code into vi, the text appears jagged like this: ...

[busybox] DHCP relay

Hi BusyBox v1.7.2 compiled and running on MIPS-based embedded platform, unfortunately I can't get dhcprelay work properly. I run it this way: dhcprelay vlan1 vlan2 192.168.1.150 where vlan1 (192.168.2.10) - is LAN, vlan2 (ip 192.168.1.2) - interface connected to WAN, 192.168.1.150 - dhcp server address. So, I connect a Windows PC to...

What is the L_* macro in busybox?

I am trying to cross-compile busybox but I am getting 'undefined reference' at the linking stage. Using nm, the symbol were in fact missing from the library file (libbb.a in my case.) Looking into the source ('busybox/libbb/xfuncs.c'), there are all these #ifdef L_<function_name> wrapping around the functions in question. Does anyone ...