/[baselayout]/trunk/init.d/checkroot
Gentoo

Diff of /trunk/init.d/checkroot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2716 Revision 2717
29 29
30 # Remove stale backups 30 # Remove stale backups
31 rm -f /etc/mtab~ /etc/mtab~~ 31 rm -f /etc/mtab~ /etc/mtab~~
32} 32}
33 33
34start() { 34do_fsck() {
35 local retval=0 opts="-F" 35 local retval=0 opts="-F"
36 [ "${RC_UNAME}" = "Linux" ] && opts="-T -C0" 36 [ "${RC_UNAME}" = "Linux" ] && opts="-T -C0"
37 37
38 # Don't bother doing a fsck on these 38 # Don't bother doing a fsck on these
39 if [ -n "${CDBOOT}" ] || is_net_fs / || is_union_fs / ; then 39 if [ -n "${CDBOOT}" ] || is_net_fs / || is_union_fs / ; then
108 if [ "${RC_UNAME}" = "Linux" ] ; then 108 if [ "${RC_UNAME}" = "Linux" ] ; then
109 mount -n -o remount,rw / 109 mount -n -o remount,rw /
110 else 110 else
111 mount -u -o rw / 111 mount -u -o rw /
112 fi 112 fi
113 eend $? "Root filesystem could not be mounted read/write :(" || return 1 113 eend $? "Root filesystem could not be mounted read/write :("
114}
115
116start() {
117 do_fsck || return 1
114 118
115 # Only Linux has mtab 119 # Only Linux has mtab
116 [ "${RC_UNAME}" = "Linux" ] && do_mtab 120 [ "${RC_UNAME}" = "Linux" ] && do_mtab
117 121
118 # If the user's /dev/null or /dev/console are missing, we 122 # If the user's /dev/null or /dev/console are missing, we

Legend:
Removed from v.2716  
changed lines
  Added in v.2717

  ViewVC Help
Powered by ViewVC 1.1.20