diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-12-14 13:28:14 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-12-14 13:28:14 +0100 |
commit | 5acdef2b977cc821ab92c3fb7319a2839e8e9c65 (patch) | |
tree | 7b6e7ecbb872b7e099b4a43f53a9bef2f152f4af | |
parent | f95fe3d6745a301caf5377114bd39d33a0c29c29 (diff) | |
download | itzks-systems-5acdef2b977cc821ab92c3fb7319a2839e8e9c65.tar.gz itzks-systems-5acdef2b977cc821ab92c3fb7319a2839e8e9c65.tar.bz2 itzks-systems-5acdef2b977cc821ab92c3fb7319a2839e8e9c65.zip |
etc/network/if-up.d/itzks-autofs: Only use on Workstations, and not on lo device.
-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 |