samba/winbind-nm-dispatcher

13 lines
293 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
INTERFACE=$1 # The interface which is brought up or down
STATUS=$2 # The new state of the interface
case "$STATUS" in
'up') # $INTERFACE is up
[ -f /var/run/samba/winbindd.pid ] || /sbin/service winbind start
;;
'down') # $INTERFACE is down
;;
esac