#!/bin/sh
#
# /etc/rc.d/rc.sysinit - run once at boot time
-# $Id: rc.sysinit,v 1.69.2.13 2001/10/22 08:51:13 misiek Exp $
+# $Id: rc.sysinit,v 1.69.2.14 2001/10/25 08:27:05 misiek Exp $
#
# Taken in part from Miquel van Smoorenburg's bcheckrc.
# Changes: Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
sleep 1
fi
+# Set console loglevel
+/bin/dmesg -n $CONSOLE_LOGLEVEL
+
# /dev must be also mounted before everything but only if we want use them ;-)
if is_yes "$MOUNT_DEVFS"; then
run_cmd "Mounting Device Filesystem" mount -n -t devfs /dev /dev
run_cmd "Starting Device Filesystem Daemon" /sbin/devfsd /dev
fi
-# Set console loglevel
-/bin/dmesg -n $CONSOLE_LOGLEVEL
-
# Configure Linux kernel
run_cmd "Configuring kernel parameters" /sbin/sysctl -p /etc/sysctl.conf
if [ -f /proc/sys/kernel/panic -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 2> /dev/null); then ok; else fail; fi
+ if (sysctl -w kernel.panic=$PANIC_REBOOT_TIME > /dev/null 2>&1); then ok; else fail; fi
fi
# Clean out /etc.
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
-# $Id: ifdown-br,v 1.1.2.2 2001/09/30 10:19:42 misiek Exp $
+# $Id: ifdown-br,v 1.1.2.3 2001/10/25 08:27:06 misiek Exp $
#
PATH=/sbin:/usr/sbin:/bin:/usr/bin
setup_ip_param
# set device down and forget all addresses
-for device in ${BRIDGE_DEVS} ${DEVICE}; do
+for device in ${BRIDGE_DEVS; do
ip link set ${device} down
ip addr flush dev ${device} 2>&1 | grep -v "Nothing to flush"
brctl delif ${DEVICE} ${device}
done
+ip link set ${DEVICE} down
brctl delbr ${DEVICE}
# This must be last line !