Subversion Repositories configs

Rev

Rev 4 | Rev 97 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 34
Line 158... Line 158...
158
	# block device.
158
	# block device.
159
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
159
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
160
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
160
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
161
	
161
	
162
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
162
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
-
 
163
	        net_log $"rootfs is on network filesystem, leaving network up"
163
		exit 1
164
		exit 1
164
	fi
165
	fi
165
  
166
  
166
  	# If this is a final shutdown/halt, check for network FS,
167
  	# If this is a final shutdown/halt, check for network FS,
167
	# and unmount them even if the user didn't turn on netfs
168
	# and unmount them even if the user didn't turn on netfs