HOSTNAME=localhost
fi
-# Read system config data
-if [ -r /etc/sysconfig/system ]; then
- . /etc/sysconfig/system
-else
- RUN_SULOGIN_ON_ERR=yes
- RUN_USERPNP=yes
- RUN_KERNELPNP=yes
- PANIC_REBOOT_TIME=0
- DELAY_LOGIN=yes
- CLEAN_TMP=no
- CONSOLE_LOGLEVEL=1
- SET_SLINKS=yes
-fi
+CONSOLE_LOGLEVEL=1
# Read functions
. /etc/rc.d/init.d/functions
PS1="$(nls '(Repair filesystem)# ')"; export PS1
[ "$SELINUX" = "1" ] && disable_selinux
- if is_yes "$RUN_SULOGIN_ON_ERR"; then
+ if ! is_no "$RUN_SULOGIN_ON_ERR"; then
/sbin/sulogin
else
/bin/sh
# set up pnp and kernel pnp
if [ -n "$PNP" ]; then
- if is_yes "$RUN_USERPNP" && [ -x /sbin/isapnp -a -f /etc/isapnp/isapnp.conf ]; then
+ if ! is_no "$RUN_USERPNP" && [ -x /sbin/isapnp -a -f /etc/isapnp/isapnp.conf ]; then
run_cmd "Setting up ISA PNP devices (userspace pnp)" /sbin/isapnp /etc/isapnp/isapnp.conf
fi
- if is_yes "$RUN_KERNELPNP"; then
+ if ! is_no "$RUN_KERNELPNP"; then
/sbin/modprobe -k isa-pnp 2> /dev/null
if [ -e /proc/isapnp -a -f /etc/isapnp/isapnp-kernel.conf ]; then
show "Setting up ISA PNP devices (kernelspace pnp)"; busy
# Remove /etc/nologin when starting system
[ -f /etc/nologin.boot ] && rm -f /etc/nologin /etc/nologin.boot
-if is_yes "$DELAY_LOGIN" && [ ! -f /etc/nologin ]; then
+if ! is_no "$DELAY_LOGIN" && [ ! -f /etc/nologin ]; then
show "Enabling Delay Login"; busy
echo > /etc/nologin
nls "System bootup in progress - please wait" >> /etc/nologin
# Adjust symlinks as necessary in /boot to keep system services from
# spewing messages about mismatched System maps and so on.
- if is_yes "$SET_SLINKS"; then
+ if ! is_no "$SET_SLINKS"; then
if [ -L /boot/System.map -a -r /boot/System.map-`uname -r` ] ; then
ln -s -f System.map-`uname -r` /boot/System.map
fi
PS1="$(nls '(RAID Repair)# ')"; export PS1
[ "$SELINUX" = "1" ] && disable_selinux
- if is_yes "$RUN_SULOGIN_ON_ERR"; then
+ if ! is_no "$RUN_SULOGIN_ON_ERR"; then
/sbin/sulogin
else
/bin/sh
PS1="$(nls '(Repair filesystem)# ')"; export PS1
[ "$SELINUX" = "1" ] && disable_selinux
- if is_yes "$RUN_SULOGIN_ON_ERR"; then
+ if ! is_no "$RUN_SULOGIN_ON_ERR"; then
/sbin/sulogin
else
/bin/sh
PS1="`nls '(Repair filesystem)# '`"; export PS1
[ "$SELINUX" = "1" ] && disable_selinux
- if is_yes "$RUN_SULOGIN_ON_ERR"; then
+ if ! is_no "$RUN_SULOGIN_ON_ERR"; then
/sbin/sulogin
else
/bin/sh
. /etc/rc.d/rc.serial
fi
- if [ -f /proc/sys/kernel/panic -a "$PANIC_REBOOT_TIME" -gt "0" ]; then
+ if [ -f /proc/sys/kernel/panic -a -n "$PANIC_REBOOT_TIME" -a "$PANIC_REBOOT_TIME" -gt "0" ]; then
show 'Setting %s seconds for kernel reboot after panic' "$PANIC_REBOOT_TIME"; busy
if (sysctl -w kernel.panic=$PANIC_REBOOT_TIME >/dev/null 2>&1); then ok; else fail; fi
fi