Changeset 2893


Ignore:
Timestamp:
Oct 18, 2011, 12:09:41 PM (7 years ago)
Author:
bruno
Message:
  • Fix #499 for good, by using a real init from busybox and moving our init script to etc/init.d/rcS. We also now call the reboot from busybox to exit, which indeed reset the system correctly (in a VM at least which wasn't the case before). Reauires a new mindi-busybox as well.
Location:
branches/2.2.9
Files:
1 added
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/.config

    r2888 r2893  
    22# Automatically generated make config: don't edit
    33# Busybox version: 1.18.5-rPBREV
    4 # Mon Oct 10 13:13:24 2011
     4# Tue Oct 18 10:23:05 2011
    55#
    66CONFIG_HAVE_DOT_CONFIG=y
     
    4949# CONFIG_FEATURE_PREFER_APPLETS is not set
    5050CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe"
    51 # CONFIG_FEATURE_SYSLOG is not set
     51CONFIG_FEATURE_SYSLOG=y
    5252# CONFIG_FEATURE_HAVE_RPC is not set
    5353
     
    420420# CONFIG_FEATURE_CALL_TELINIT is not set
    421421CONFIG_TELINIT_PATH=""
    422 # CONFIG_INIT is not set
     422CONFIG_INIT=y
    423423# CONFIG_FEATURE_USE_INITTAB is not set
    424424# CONFIG_FEATURE_KILL_REMOVED is not set
    425425CONFIG_FEATURE_KILL_DELAY=0
    426 # CONFIG_FEATURE_INIT_SCTTY is not set
    427 # CONFIG_FEATURE_INIT_SYSLOG is not set
    428 # CONFIG_FEATURE_EXTRA_QUIET is not set
    429 # CONFIG_FEATURE_INIT_COREDUMPS is not set
    430 # CONFIG_FEATURE_INITRD is not set
    431 CONFIG_INIT_TERMINAL_TYPE=""
     426CONFIG_FEATURE_INIT_SCTTY=y
     427CONFIG_FEATURE_INIT_SYSLOG=y
     428CONFIG_FEATURE_EXTRA_QUIET=y
     429CONFIG_FEATURE_INIT_COREDUMPS=y
     430CONFIG_FEATURE_INITRD=y
     431CONFIG_INIT_TERMINAL_TYPE="linux"
    432432CONFIG_MESG=y
    433433
  • branches/2.2.9/mindi/deplist.d/base.conf

    r2750 r2893  
    5555/bin/date
    5656/sbin/ctrlaltdel
    57 /usr/bin/reboot
    58 /usr/bin/halt
    5957/bin/dd
    6058/usr/bin/eject
  • branches/2.2.9/mindi/deplist.d/minimal.conf

    r2849 r2893  
    2222# On ArchLinux
    2323/bin/pidof
    24 /usr/bin/reboot
    25 #On Archlinux
    26 /sbin/reboot
    27 /sbin/shutdown
    2824/etc/init.d/functions
    2925# On ArchLinux
  • branches/2.2.9/mindi/rootfs/etc/init.d/rcS

    r2892 r2893  
    99CaughtSoftReset() {
    1010    trap SIGTERM
    11     # Now kill all processes
    12     LogIt "Killing all processes"
    13     kill -TERM -1
    14     sync
    15     sleep 1
    16     kill -KILL -1
    17     sync
    18     # Try to umount what we can again
    19     LogIt "Unmounting filesystems"
    20     umount -a -d -r 2> /dev/null
    21     # now reboot hard
    22     # This doesn't work nor does reboot
    23     # ctrlaltdel hard &
    24     # reboot -f
    25     LogIt "Using SysRq to reboot"
    26     echo s > /proc/sysrq-trigger
    27     echo u > /proc/sysrq-trigger
    28     echo b > /proc/sysrq-trigger
    29 
    30     # if we reach that point that's odd
    31     # That script should never end as the kernel crashes otherwise
    32     while [ "1" == "1" ]; do
    33         sleep 10
    34     done
     11
     12    reboot
    3513}
    3614
Note: See TracChangeset for help on using the changeset viewer.