]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/system/vnstat
2 # Begin $rc_base/init.d/vnstat
7 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/main
/settings
)
9 if [ "$VNSTATLOG" = '' ]; then
10 VNSTATLOG
=/var
/log
/vnstat
16 boot_mesg
"Mounting vnstat ramdisk..."
17 mount_ramdisk
"${VNSTATLOG}"
22 umount_ramdisk
"${VNSTATLOG}"
30 # Backup all data if ramdisk is used
31 if mountpoint
"${RRDLOG}" &>/dev
/null
; then
37 echo "Usage: $0 {start|stop|restart|backup}"
42 # End $rc_base/init.d/vnstat