text/plain"
echo "Expires: 0"
echo
echo "Hello World!"
echo "You should not see this text in your Browser" >&2
HTH
--
Bob Dunlop
___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
stall directory
make CONFIG_PREFIX=$(pwd)/../../../rootfs install
Hope this helps
--
Bob Dunlop
___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
]
then
do_kexec_boot
elif [ -c /mnt/dev/console -a -x /mnt/sbin/init ]
then
do_switch_root
else
echo Mount successful but no boot options available
fi
[1] http://en.wikipedia.org/wiki/Kexec
--
Bob Dunlop
(Python and PHP that I know of) have
setproctitle() implementations although the implementations are
poor/buggy on linux by all accounts.
[1]
http://stupefydeveloper.blogspot.co.uk/2008/10/linux-change-process-name.html
--
Bob Dunlop
the daemonise call you'll get the original
parent ID, run it after the daemonise call you get the child ID.
Both IDs are correct for different purposes.
--
Bob Dunlop
___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman
At a quick glance.
Two basic errors and eight trivial compiler warnings.
Now what's the question ?
--
Bob Dunlop
___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
with the version
you are compiling against ?
--
Bob Dunlop
___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
On Wed, Jul 13 at 09:04, Denys Vlasenko wrote:
On Monday 11 July 2011 17:45, Bob Dunlop wrote:
I traced it to a commented out sleep(2) in fdisk.c. With the sleep
reinstated fdisk is reliable.
What is the minimum usleep(MICROSEC) it works for you?
From previous post with the loop test:
So
+ failed, kernel still uses old table);
+ break;
+ }
+ usleep(5);
+ }
#if 0
if (dos_changed)
printf(
--
Bob Dunlop
___
busybox mailing list
busybox
was I was updating an
in house wrapper around fdisk that doesn't allow the user to run fdisk if
any of the partions on the target drive are in use.
--
Bob Dunlop
___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo
: rereading partition table
failed, kernel still uses old table);
--
Bob Dunlop
___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
the parameters with quotes to be evaluated in the parent shell.
Of course in the file will cause problems and a whole host of other
things could lead to nasty security holes, but then you know that.
--
Bob Dunlop
___
busybox mailing list
busybox
:
-A Don't list . and ..
should read:
-A Don't show . and ..
The difference between list and show is subtle but it consumes no bytes
and is a small step in the right direction.
--
Bob Dunlop
___
busybox mailing list
busybox
1.17.3 back
in November. From my notes udev was passing the -b option to modprobe
and the solution was to enable modprobe blacklists.
CONFIG_FEATURE_MODPROBE_BLACKLIST=y
--
Bob Dunlop
___
busybox mailing list
busybox@busybox.net
http
10.99.99.1 dev eth0 metric 202
# ip route flush dev vlan1234
# ip route
#
I also lose all the routes if I try ip route flush dev lo so I don't
think the use of a vlan in the example is significant. Am I missing
something really simple ?
--
Bob Dunlop
issue if nothing else.
The big difference is the xargs version will group files together making
far fewer calls to rm whereas your version invokes a new rm for each file.
That could be a big efficiency hit if there are truely large numbers of
files involved.
--
Bob Dunlop
Not a fix but a work around:
$ ./busybox ash -c 'read MAX /proc/sys/kernel/pid_max; echo $MAX'
3
$ busybox ash -c 'MAX=$(cat /proc/sys/kernel/pid_max) ; echo $MAX'
32768
Files in /proc are generated on the fly. They can be fussy about how they
are read.
--
Bob Dunlop
On Wed, Dec 08 at 12:22, Johannes Stezenbach wrote:
On Tue, Dec 07, 2010 at 11:43:53AM +, Bob Dunlop wrote:
Pid files are not very robust in general.
You can make you kill script a bit more robust with a simple check. Get
the pid from the file and examine /proc/pid/cmdline which
, but are thinking about a shakeup in the near
future.
Anyone have any experience of using systemd on small systems ?
--
Bob Dunlop
___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
at busybox. If the name matches you're on to a reasonable bet
that you are killing the right thing.
--
Bob Dunlop
___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
to use div() rather than
relying on the optimiser to spot that you were using both quotient and
remainder of the same expression. Same version of C compiler would spot
the optimisation on x86 platforms but miss it entirely on ARM.
--
Bob Dunlop
know the while loop produces no other output you might try echoing
the final setting and evaluating the output.
eval $( source_process | ( while
do
something sets $result
done ; echo var=$result ))
# $var will now contain the result
HTH
--
Bob Dunlop
usage of the pointer.
Saves 4 bytes on my ARM compiler.
Signed-off-by: Bob Dunlop bob.dun...@xyzzy.org.uk
$ diff -Naur busybox-1.17.1{-orig,}/libbb/obscure.c
--- busybox-1.17.1-orig/libbb/obscure.c 2010-07-06 03:25:54.0 +0100
+++ busybox-1.17.1/libbb/obscure.c 2010-08-17 12:14
23 matches
Mail list logo