]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/initscripts/init.d/networking/red
Included lm_sensors and the needed HW-Monitoring Modules
[ipfire-2.x.git] / src / initscripts / init.d / networking / red
index bb8a04d0cf0001803ec947620514ff2faadc60e5..9bc848228ae5ada2597b41425f134f3a144e5ca9 100644 (file)
@@ -89,8 +89,8 @@ case "${1}" in
                        fi
                fi
 
-               ## Create/Update vnstat
-               /usr/bin/vnstat -u -i ${DEVICE} --force > /dev/null 2>&1
+               ## Create & Enable vnstat
+               /usr/bin/vnstat -u -i ${DEVICE} -r --enable --force > /dev/null 2>&1
                
                if [ "${TYPE}" == "STATIC" ]; then
                
@@ -321,8 +321,8 @@ case "${1}" in
                                evaluate_retval
                                # echo PPP: /usr/sbin/pppd pty "$PPPOE_CMD" $PPP_STD_OPTIONS $DEBUG $DEMAND $PPPD_SYNC
                        fi
-                       ## Create/Update vnstat
-                       /usr/bin/vnstat -u -i ppp0 --force > /dev/null 2>&1
+                       ## Create & Enable vnstat
+                       /usr/bin/vnstat -u -i ppp0 -r --enable --force > /dev/null 2>&1
                        /etc/rc.d/init.d/connectd start
 
                fi
@@ -376,8 +376,8 @@ case "${1}" in
                
                elif [ "$TYPE" == "PPPOE" ]; then
                        boot_mesg "Bringing down the PPP interface ..."
-                       ## Update vnstat
-                       /usr/bin/vnstat -u -i ppp0 > /dev/null 2>&1
+                       ## Disable vnstat collection
+                       /usr/bin/vnstat -u -i ppp0 -r --disable > /dev/null 2>&1
                        rm -f /var/ipfire/red/keepconnected
                        killall -w -s TERM /usr/sbin/pppd 2>/dev/null
                        evaluate_retval
@@ -398,8 +398,8 @@ case "${1}" in
                killall -w -s KILL br2684ctl >/dev/null 2>&1
                rm -f /var/ipfire/red/{active,device,dial-on-demand,dns1,dns2,local-ipaddress,remote-ipaddress,resolv.conf}
 
-               ## Update vnstat
-               /usr/bin/vnstat -u -i ${DEVICE} > /dev/null 2>&1
+               ## Disable vnstat collection
+               /usr/bin/vnstat -u -i ${DEVICE} -r --disable > /dev/null 2>&1
                exit 0;
                ;;
 esac