Browse Source

init: enhanced to trap reboot, halt, poweroff and ctrl-alt-del (WIP) and changed to wait for ever, for now

0.2-maint
Alejandro Mery 16 years ago
parent
commit
bd6d3ef6b1
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      initramfs/init.sh

+ 13
- 1
initramfs/init.sh

@ -15,6 +15,18 @@
export PATH
# catch some signals
#
signal_handler() {
echo "=== trap $* ===" >> /var/log/init-signals.log
}
for x in USR1 USR2 TERM INT; do
trap "signal_handler $x" $x
done
/etc/rc.d/rc.sysinit 2>&1 | tee -a /var/log/init.log
exec /bin/sh
while true; do
sleep 1;
done

Loading…
Cancel
Save