summaryrefslogtreecommitdiff
path: root/beagle/debian-rfs/etc/init.d/mountall-bootclean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'beagle/debian-rfs/etc/init.d/mountall-bootclean.sh')
-rwxr-xr-xbeagle/debian-rfs/etc/init.d/mountall-bootclean.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/beagle/debian-rfs/etc/init.d/mountall-bootclean.sh b/beagle/debian-rfs/etc/init.d/mountall-bootclean.sh
new file mode 100755
index 0000000..38c0191
--- /dev/null
+++ b/beagle/debian-rfs/etc/init.d/mountall-bootclean.sh
@@ -0,0 +1,31 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: mountall-bootclean
+# Required-Start: mountall
+# Required-Stop:
+# Default-Start: S
+# Default-Stop:
+# Short-Description: bootclean after mountall.
+# Description: Clean temporary filesystems after
+# all local filesystems have been mounted.
+### END INIT INFO
+
+case "$1" in
+ start|"")
+ # Clean /tmp, /var/lock, /var/run
+ . /lib/init/bootclean.sh
+ ;;
+ restart|reload|force-reload)
+ echo "Error: argument '$1' not supported" >&2
+ exit 3
+ ;;
+ stop)
+ # No-op
+ ;;
+ *)
+ echo "Usage: mountall-bootclean.sh [start|stop]" >&2
+ exit 3
+ ;;
+esac
+
+: