summaryrefslogtreecommitdiff
path: root/etc/network/if-up.d/itzks-autofs
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2012-08-29 21:04:27 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2012-08-29 21:04:27 +0200
commit58d83b28f64517a84845b6c2ef6cd6f1662f22cc (patch)
treeed048be3848e37b930c361d7c65656fa5f20ced3 /etc/network/if-up.d/itzks-autofs
parentd870875280a01d539e465c47bec6c51021cfe5bf (diff)
downloaditzks-systems-58d83b28f64517a84845b6c2ef6cd6f1662f22cc.tar.gz
itzks-systems-58d83b28f64517a84845b6c2ef6cd6f1662f22cc.tar.bz2
itzks-systems-58d83b28f64517a84845b6c2ef6cd6f1662f22cc.zip
etc/network/if-up.d/{autofs,cups}: Rename to itzks-autofs, itzks-cups to avoid future name conflicts. Test for scripts of the names autofs resp. cups and debian-edu and if they exist, exit gracefully.
Diffstat (limited to 'etc/network/if-up.d/itzks-autofs')
-rwxr-xr-xetc/network/if-up.d/itzks-autofs7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/network/if-up.d/itzks-autofs b/etc/network/if-up.d/itzks-autofs
new file mode 100755
index 0000000..974a1c6
--- /dev/null
+++ b/etc/network/if-up.d/itzks-autofs
@@ -0,0 +1,7 @@
+#!/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
+
+invoke-rc.d --quiet autofs restart
+