System information

80 Sharing and maintaining SLES 10 SP2 Linux under z/VM
#
# /etc/init.d/boot.readonlyroot
# derived from /etc/init.d/boot.rootfsck (SuSE)
#
### BEGIN INIT INFO
# Provides: boot.readonlyroot
# Required-Start:
# Required-Stop:
# Default-Start: B
# Default-Stop:
# Description: check and mount /local filesystem
### END INIT INFO
. /etc/rc.status
# to get max number of parallel fsck processes
. /etc/sysconfig/boot
if [ -f /etc/sysconfig/dump ]; then
. /etc/sysconfig/dump
fi
export FSCK_MAX_INST
rc_reset
#
# LKCD is active when
# - $DUMP_ACTIVE = 1
# - boot.lkcd script is active
# - disk dump is enabled ($DUMP_FLAGS)
function lkcd_active()
{
if [ -n "$DUMP_ACTIVE" ] && [ "$DUMP_ACTIVE" -eq 1 ] ; then
if /sbin/chkconfig -c boot.lkcd && \
(( "$DUMP_FLAGS" & "0x80000000" )) ; then
return 0
fi
fi
return 1
}
function get_options ()
{
local source dest fstype options rest return
while read source dest fstype options rest ; do
test "$dest" = "/" || continue
return="$options"
test "$2" = "first" && break
done < <(grep -E '^[^#[:space:]]+[[:space:]]+/[[:space:]]' $1)
echo "$return"
}
function have_option ()
{
local sl
local IFS
IFS=','
for sl in $1; do
test "$sl" = "defaults" && continue