Tuesday, December 2, 2008

autofs #3

Ok, I weakened... again this isn't a pretty solution, and it seems NetworkManager is becoming my friend...

[user@localhost ~]$ cat /etc/NetworkManager/dispatcher.d/03-autofs
#!/bin/sh
if [ "$2" = "up" ]; then
AUTOFS=/etc/init.d/autofs

if [ ! -x $AUTOFS ]; then
exit 0
fi

$AUTOFS start > /dev/null
fi

No comments: