press enter to reboot message when rebooting

Bug #230490 reported by ekan
4
Affects Status Importance Assigned to Milestone
Wicker
New
Undecided
Unassigned

Bug Description

get rid of that press enter and close the tray message when rebooting...that's a holdover from the CD version. ack.

Revision history for this message
openhacker (leisner) wrote :

In //etc/init.d/casper change

78
 79 eject -p -m /cdrom >/dev/null 2>&1
 80
 81 [ "$prompt" ] || return 0
 82
 83 stty sane < /dev/console
 84
 85 # XXX - i18n
 86 echo "Please remove the disc and close the tray (if any) then press ENTER: " > /dev/console
 87 if [ -x /sbin/usplash_write ]; then
 88 /sbin/usplash_write "TIMEOUT 86400"
 89 /sbin/usplash_write "TEXT-URGENT Please remove the disc, close the tray (if any)"
 90 /sbin/usplash_write "TEXT-URGENT and press ENTER to continue"
 91 fi
 92
 93 read x < /dev/console

to
     79 # eject -p -m /cdrom >/dev/null 2>&1
     80
     81 [ "$prompt" ] || return 0
     82
     83 stty sane < /dev/console
     84
     85 # XXX - i18n
     86 > /etc/mtab
     87 sync
     88

Not sure what else would have to be changed, but this handles persistent media.
The >/etc/mtab clears out /etc/mtab -- it might be a better idea to
link mtab to /proc/mounts.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.