summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/autofs/finish
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra-testing/autofs/finish')
-rwxr-xr-xabs/extra-testing/autofs/finish9
1 files changed, 9 insertions, 0 deletions
diff --git a/abs/extra-testing/autofs/finish b/abs/extra-testing/autofs/finish
new file mode 100755
index 0000000..40d2fdc
--- /dev/null
+++ b/abs/extra-testing/autofs/finish
@@ -0,0 +1,9 @@
+#!/bin/sh
+exec 2>&1
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+stat_runit "Stopping autofs4 kernel module" && echo ""
+set -e # barf if modprobe fails
+/sbin/modprobe -r autofs4