]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/initscripts/init.d/networking/any
Included lm_sensors and the needed HW-Monitoring Modules
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / networking / any
index 3c38d5c4a2a7c87f5854357e3eb5e96e40d6f538..dbd1cb22e885862f33b8024b1372b27c651b9a48 100644 (file)
@@ -77,8 +77,8 @@ case "${1}" in
                        exit 1
                fi
 
-               # Create/Update vnstat database
-               /usr/bin/vnstat -u -i ${DEVICE} --force > /dev/null 2>&1
+               # Create & Enable vnstat data collection
+               /usr/bin/vnstat -u -i ${DEVICE} -r --enable --force > /dev/null 2>&1
                
                boot_mesg "Adding IPv4 address ${ADDRESS} to the ${DEVICE} interface..."
                ip addr add ${args} dev ${DEVICE}
@@ -90,8 +90,8 @@ case "${1}" in
                ip addr del ${args} dev ${DEVICE}
                evaluate_retval
 
-               # Update vnstat database
-               /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