The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
68 views

How to check if busybox has a command?

In my case, I want to see if busybox has "md5sum" builtin. I am currently doing this: $ echo | busybox md5sum &>/dev/null && echo yes || echo no I have not been able to find any ...
0
votes
0answers
51 views

Why does my busybox diff report 'Common subdirectories' for every file pair?

I am using this version of diff on my Synology NAS to verify a backup: xyz> diff BusyBox v1.16.1 (2014-05-29 11:26:15 CST) multi-call binary. Usage: diff [-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U ...
0
votes
0answers
47 views

busybox cp 'are the same file' when copying directories

I'm porting a bash script that worked on OS X to Windows+BusyBox. The first command is to create a new directory mkdir ../new_directory Then to copy all files from the current directory to a new ...
1
vote
1answer
661 views

devmem: can't open '/dev/mem': Permission denied

I have 2 phones (Samsung Galaxy S4 LTE I9505, Android 4.4.2 Kitkat) which I already rooted and have root access to the phones. Previously, on my rooted Samsung Galaxy S3 LTE I9505 running Android ...
0
votes
0answers
208 views

tmux and nano in busybox

When I connect to my busybox'ed synology NAS with ssh, I can run "nano" with just nano Some_File-sh from the cli. But if I start tmux, I need to use the absolute path /usr/bin/nano/Some_File.sh, ...
1
vote
1answer
61 views

Is this expected reverse DNS behaviour or something weirder?

Excuse me as I'm a linux noob: I have a system (specifically, a Nexus 7 running CM 10.2.1 with busybox), which, when I run host or traceroute on its nominal private IP (192.168.1.7) gives a hostname ...
0
votes
1answer
26 views

How to find files that contain a string in its content OR the path?

Find and grep does not work afaik because I need to create a list of files that satisfy EITHER requirement, not both. I assume this requires more than a one-liner. Any suggestions?
1
vote
1answer
568 views

How to wait for a response on the inbound side of the socket using NC command under BusyBox?

I am having problems using the Netcat that comes with BusyBox 1.1.3 to make an HTTP request and then receive the response. The NC command seems to quit out as soon as it reaches the end of the request ...
0
votes
1answer
399 views

Adding a C compiler to BusyBox

I recently started using BusyBox to do simple tasks, but now I need gcc, tcc or any C compiler on it. I heard about adding an applet, but I don't know how to do it. I have gcc source, BusyBox source, ...
0
votes
1answer
658 views

Howto Isolate a computer from my network using a billion 7800n and a busybox prompt

My only router is a billion 7800n connected to the internet using the ewan port. I have 4 computers connected to it 2 wired and 2 using wifi. I want to isolate one of the wired ports from seeing the ...
0
votes
0answers
270 views

Galaxy Tab 10.1 / Android 4.0.4 wget always returning 404 error

I recently rooted my Android and installed busybox, but wget returns the same error not matter what. I even null routed the IP address. ( This is my personal domain, and I have the blackhole route ...
0
votes
1answer
317 views

How can I find out the vfstype of a hard drive partition?

How do I find out the vfstype of a hard drive partition when it is unmounted in BusyBox? My question is specific for BusyBox since I am trying to do a mount during a Debian install. If I do fdisk -l ...
3
votes
1answer
4k views

mount on busybox: invalid argument when trying to mount smb share

I am trying to mount a smb share on my embedded Linux running on ARM (3.6.9) with busybox 1.21 mount -t cifs //192.168.0.12/mydata /mnt/myData results in an invalid argument error: mount: ...
7
votes
3answers
31k views

How to display current path in command prompt in linux's sh (not bash)?

I would like to display current path in sh prompt (not bash shell), which currently just shows "#", I tried with introducing this env PS1="$(whoami)@$(hostname):$(pwd)" and set ...
0
votes
1answer
80 views

How to run a script uninterrupted accross power-cycling

I'm stomped on how to accomplish this task. I need to run this script that fills up the nand flash on an embedded (linux-Busybox v1) device with random data, then continually repeats this process ...
4
votes
2answers
124 views

Attempting to test an embedded nand flash chip by filling up a file to drive capacity

I'm trying to test an embedded nand flash chip using the dd command (write random data to a file): dd if=/dev/urandom of=/nand/storage/testnand/test.raw bs=100000 count=50 2> /dev/null However, ...
1
vote
1answer
472 views

How do I gracefully fall back to AutoIP when there is no DHCP service available?

I am developing an embedded device based on Linux and Busybox, and trying to make it adaptable to different network configurations. I want to: 1- At boot time, if there is no DHCP reply, use an ...
0
votes
0answers
297 views

udhcpc: How can I get the result of requesting option?

I use commond line like this: udhcpc -O domain But the teminal only shows like this: Sending discover... Sending select for 192.168.X.X... Lease of 192.168.X.X obtained, leasing time ... So ...
0
votes
1answer
242 views

RSS Reader/Downloader on a NAS

First, I'm no NAS-pro and I'm no Unix-pro. Second, I read the other RSS-downloader question, but rsstail is a C-source and tvrss is a GUI-program. I also checked out NetVibes, but I can't sort by ...
1
vote
1answer
708 views

How to force a longer `reboot` in Busybox v1.13.3?

reboot appears to make the root file system read-only almost immediately, causing a race condition with one of my processes which tries to write settings out to a file during its approx 1-2 second ...
0
votes
0answers
198 views

how to set adduser home directory permission on busybox

I'm using busybox's adduser to create home direcory. adduser foo I found the directory which created in a strange permission drwxs-xr-x (with setgid flag) Is there any config file which can let ...
3
votes
2answers
1k views

sed Command on BusyBox expects different syntax?

I hope I phrased the question correct. I have a script that makes use of 'sed' a lot. It works great on my ubuntu with the GNU 'sed'. But when I try to run it on BusyBox it fails. Is there a way to ...
1
vote
1answer
4k views

How to set up git in NAS Server (git, ssh, busybox)

I'm trying to set up git using my Synology DS212J NAS Server. I've been following these instructions: http://www.wonko.de/2010/04/set-up-git-on-synology-nas.html But I am very much a beginner with ...
0
votes
1answer
2k views

How to make BusyBox running where my backend operating system can be xyz?

I am trying to setup BusyBox on top of ArchLinux, Fedora or Ubuntu. So that when i telnet i can get something like this following: But how do i get started? Simply install Busybox on top of my ...
2
votes
2answers
542 views

Search all files containing text

With Busybox, how do you search for an expression within a bunch of files recursively through a bunch of directories, but only look through text files? We don't know what the file's suffix is going ...
4
votes
1answer
8k views

Ubuntu system drops to BusyBox prompt while booting, followed by “udevd [94]: timeout: killing '/ sbin / blkid-o udev-p / dev / sda' ” error

I have installed Ubuntu 11.10 on a netbook (Intel 1.6 GHz and RAM 1 GB) with Windows XP. One week ago, Ubuntu stopped. That day had not installed any upgrade or any software. When I try to start ...
0
votes
4answers
848 views

smallest possible linux distribution

I want to build a really small linux distribution which would be using busybox, possibly uClibc. In the beginning, just a ramfs would do. Plus, I dont mind not having a native toolchain. I went ...
0
votes
1answer
608 views

run scrpts on routers with BusyBox

I own a router (tp link w8960n) that I can "control" via telnet and busybox. Is it possible to create and run a script on the router like a permanent process(more like a cronojob) if the router has ...
0
votes
2answers
3k views

How i can install BusyBox on Virtual Machine?

How i can install BusyBox on Virtual Machine? For instance, VMVare or VirtualBox? Where I can see some manuals about this problem?
0
votes
0answers
274 views

How to start init, but not startup scripts?

I specified rdinit=/bin/sh and manually booted the system (in chroot) from command line, complete with mounted filesystems, network services and X desktop. The init is still busybox's /bin/sh. The ...
1
vote
1answer
324 views

Actiontec Q1000 missing cp and rm from busybox

The new CenturyLink Q1000 busybox seems to be missing some crucial commands - namely rm, cp and ln.. It does have tftp so if I can, somehow find a server with binaries, I might be able to get those ...
0
votes
1answer
202 views

Eject slot-loaded CD in BusyBox 1.18.4

I have a PowerPC Mac Mini that is running Ubuntu and when booted it fails to BusyBox. Problem is I cannot boot to live CD because there's a CD already in the slot and for some reason the eject applet ...
0
votes
1answer
404 views

How to fork two process in inittab without waiting one to finish?

I know how to fork to process. That is not a problem. But my issue is a little different. Example inittab line: ::respawn:-/usr/bin/python /path/to/script.py && /bin/sh -l -c 'chown ...
0
votes
1answer
221 views

Limited password-less user to run a single command

This is a pretty wonky setup -- hopefully someone else has gone through this kind of setup. I have a UPS that is connected to a bare-metal server which is running APCUPSD, which is working as ...
1
vote
1answer
2k views

TFTP an entire directory, problem with spaces in names

I've done a bit of digging, but I haven't discovered a working solution yet (to my surprise.) I've been trying this: # for i in `ls`; do tftp -l "$i" -p 192.168.1.100; done I just want to TFTP the ...
3
votes
3answers
2k views

Unmounting Detachable devices (eSATA,USB storage) in Linux

A detachable device like eSATA, USB drive can be abruptly removed (by simply pulling the plug). If there are open file handles on a partition, then this partitions won't unmount, i.e. the Linux ...
2
votes
2answers
2k views

How can I make the read only file system writable on BusyBox?

I want to change some files on my router. Firstly I can change everything in /var, but I want to change /etc/fstab. When I try to change it, I get an error message that says the file system is read ...
2
votes
3answers
1k views

Are there non-GPL alternatives to Busybox?

Busybox seems to be sort stumbling block for vendors that want little embedded linux. There are even lawsuits regarding Busybox. Are there more liberally licensed (BSD, MIT or at least LGPL) analogue ...
0
votes
2answers
402 views

dual booting(Windows 7/Ubuntu 10.10/11.04) not seeing any of the OSes

I've run into a problem on my HP laptop G32-301TX with i5 Intel processor and ATI Radeon graphics. I have a dual booting with Windows 7 and at first Ubuntu 10.10 every thing runs fine till I ...
1
vote
0answers
421 views

Adding udev for embedded linux

I am using an arm processor and linux busybox as my OS. I want to add udev running in my system. The system has mdev. But doesn't seem to fulfill my need. How can I add udev for my system? thank you. ...
1
vote
2answers
1k views

Generating a timestamp to usec accuracy in shell (Busybox)

I want to generate a textual timestamp in the unix shell with microsecond accuracy, without using the %N date option (I am using busybox, a smaller unix toolset that does not have this option), to ...
0
votes
2answers
840 views

Recursive touch command on BusyBox 1.01

I'm trying to write a bash script that will run on my QNap NAS to touch a directory recursively. I have this: find $1 -exec touch {} + However, find that comes with BusyBox 1.01 doesn't support the ...
1
vote
1answer
241 views

Stop Linux from allocating more memory to a process

I want to test that a process properly kills itself and restarts when it can't allocate needed memory. One idea I had was to start other memory-consuming processes and hope that OOM killer kills the ...
4
votes
2answers
8k views

Ubuntu fails to start after system update (displays BusyBox notice on command line)

I am running Ubuntu 10.x on one of my boxes. Yesterday the SPM popped up during a session, with the choice to install the latest updates. I agreed (like I have done many times before). This time, ...
0
votes
2answers
1k views

Any reason why IDE disk hda1 shows up as sda1 under Knoppix Live CD

I'm running a debian system and today I ran aptitude safe-upgrade. It's been a while since I'd down that so it downloaded and installed a bunch of stuff including a new kernal image. Everything ...
3
votes
2answers
11k views

Ubuntu install boots into BusyBox

I'm trying to install Ubuntu on a wiped drive and for some reason when i choose the install option, it goes to the BusyBox built in shell. Can anyone tell me why it would do that and how to get to the ...