On Tuesday 26 October 2010 23:44, Peter Scheie wrote: > I'm using busybox 1.17.2 in an initramfs. In my init script (/init) if > a certain test fails, it calls reboot. But when it does, nothing > happens. The init script ends with a prompt, and if I manually call > reboot, it works. Here's the relevant code: > > read -p "Are you ABSOLUTELY sure you want to do this? Type 'yes to > preceed: " partyes > if [ "$partyes" != "yes" ]; then > INFO "Partitioning cancelled." > read -s -n1 -p "Press any key to reboot..." > /sbin/reboot > read -s -n1 -p "Press any key to reboot..." > fi > > (The read line is all one line; Evolution wrapped it.) I call a prompt > just before the reboot; here I added one after to try to debug the > problem. When run, I just get a "Press any key" prompt, and it waits; > and then when I press a key, I get the second "Press any key". Calling > reboot, with or without the path, does nothing. > > Any idea why reboot doesn't seem to want to work within my script? > Thanks.
It signals init to reboot, and your init doesn't understand the signal. Are you using bbox init? What's in inittab? -- vda _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
