#---------------------------------------------------------------------------- # /etc/rc.d/rc365.qos - configuration of OPT_QOS __FLI4LVER__ # # Creation: 03.04.2002 ow # Last Update: $Id$ #---------------------------------------------------------------------------- case $OPT_QOS in yes) begin_script QOS QOS_CONFIG_DIR='/var/run' QOS_CONFIG_UPDATE='yes' if [ ! -f "$QOS_CONFIG_DIR"/qos.conf -o "$QOS_CONFIG_UPDATE" = yes ] then set | grep '^QOS' > $QOS_CONFIG_DIR/qos.conf fi do_modprobe sch_htb do_modprobe sch_sfq case $QOS_PRIO in yes) do_modprobe sch_prio ;; esac if [ "$OPT_QOS_IFB" = "yes" ] then do_modprobe sch_ingress do_modprobe cls_u32 do_modprobe act_connmark do_modprobe act_mirred do_modprobe ifb numifbs=$QOS_INTERNET_DEV_N for i in $(seq $QOS_INTERNET_DEV_N) do eval dev=\$QOS_INTERNET_DEV_${i} echo "$dev ifb$((i-1))" done > $QOS_CONFIG_DIR/qos.devices > $QOS_CONFIG_DIR/qos.filters else do_modprobe cls_fw do_modprobe imq numdevs=2 fi /usr/local/bin/qos.sh start end_script ;; esac