diff options
-rwxr-xr-x | etc/network/if-up.d/itzks-autofs | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/etc/network/if-up.d/itzks-autofs b/etc/network/if-up.d/itzks-autofs index 974a1c6..611d78c 100755 --- a/etc/network/if-up.d/itzks-autofs +++ b/etc/network/if-up.d/itzks-autofs @@ -1,7 +1,24 @@ #!/bin/sh -if test -e /etc/network/if-up.d/autofs; then exit 0; fi -if test -e /etc/network/if-up.d/debian-edu; then exit 0; fi +if test -e /etc/debian-edu/config; then + . /etc/debian-edu/config +fi -invoke-rc.d --quiet autofs restart +if [ "$IFACE" != "lo" ]; then + : +else + exit 0 +fi + +if test -e /etc/network/if-up.d/autofs; then + exit 0 +fi +if test -e /etc/network/if-up.d/debian-edu; then + exit 0 +fi +if [ "$PROFILE" = "Roaming-Workstation" ]; then + exit 0 +fi + +invoke-rc.d --quiet autofs restart |