You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
332 B

#!/bin/sh
. /etc/init.d/globals
case "$ACTION" in
add|"")
if [ -s /etc/wpa_supplicant.conf ]; then
LOGINFO "trying to bring $MDEV up"
ifup $MDEV
else
LOGWARN "/etc/wpa_supplicant.conf missing or empty, not trying to bring $MDEV up"
fi
;;
remove)
LOGINFO "trying to bring $MDEV down"
ifdown $MDEV
;;
esac