Changeset 3244 in MondoRescue
- Timestamp:
- Jan 30, 2014, 11:13:12 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/rootfs/etc/init.d/rcS
r3172 r3244 53 53 mount / -o rw,remount > /dev/null 2> /dev/null 54 54 for i in `cat /proc/cmdline`; do 55 56 57 58 59 60 61 elif [[ $console != "" && -e$console ]]; then62 setsid sh -c "exec sh <$console >$console 2>&1"63 64 65 55 echo $i | grep -qi console= && console=`echo $i | cut -d= -f2` 56 echo $i | grep -qi serial= && serial=`echo $i | cut -d= -f2` 57 done 58 LogIt "Launching Shell" 59 if [[ $serial != "" && -e $serial ]]; then 60 setsid sh -c "exec sh <$serial >$serial 2>&1" 61 elif [[ $console != "" && -e /dev/$console ]]; then 62 setsid sh -c "exec sh </dev/$console >/dev/$console 2>&1" 63 else 64 setsid sh -c "exec sh </dev/tty1 >/dev/tty1 2>&1" 65 fi 66 66 } 67 67 … … 111 111 # Required to have a correct serial console support (MP on ia64 or VSP with iLO2 e.g.) 112 112 for i in `cat /proc/cmdline` ; do 113 113 echo $i | grep -qi serial= && serial=`echo $i | cut -d= -f2` 114 114 done 115 115 # Doing that is only valid when using a real serial line 116 if [ -f $serial]; then116 if [[ $serial != "" && -e $serial ]]; then 117 117 LogIt "Redirecting serial $serial to /dev/tty" 1 118 118 ln -s -f $serial /dev/tty
Note:
See TracChangeset
for help on using the changeset viewer.