Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP1:Update
vnstat
vnstat-if.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File vnstat-if.sh of Package vnstat
#!/bin/bash unset ${!LC_*} LANGUAGE export LANG="POSIX" export PATH="/sbin:/usr/sbin:/bin:/usr/bin" [ "$PRELEVEL" = "N" ] && exit CONFNAME="$1" IFACE="$2" [ "$IFACE" = "lo" ] && exit [ -x /usr/bin/vnstat ] || exit [ -w "/var/lib/vnstat/$IFACE" ] || exit case $0 in *if-up.d*) /usr/bin/vnstat -r --enable -i "$IFACE" ;; *if-down.d*) /usr/bin/vnstat -r --disable -i "$IFACE" ;; esac
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor