aboutsummaryrefslogtreecommitdiff
path: root/rootfs/etc/deinit.d
diff options
context:
space:
mode:
Diffstat (limited to 'rootfs/etc/deinit.d')
-rw-r--r--rootfs/etc/deinit.d/90_network3
-rw-r--r--rootfs/etc/deinit.d/99_mounts3
2 files changed, 6 insertions, 0 deletions
diff --git a/rootfs/etc/deinit.d/90_network b/rootfs/etc/deinit.d/90_network
new file mode 100644
index 0000000..106e6b7
--- /dev/null
+++ b/rootfs/etc/deinit.d/90_network
@@ -0,0 +1,3 @@
+#!/bin/sh
+# disable all network interfaces
+ifdown -a
diff --git a/rootfs/etc/deinit.d/99_mounts b/rootfs/etc/deinit.d/99_mounts
new file mode 100644
index 0000000..359d592
--- /dev/null
+++ b/rootfs/etc/deinit.d/99_mounts
@@ -0,0 +1,3 @@
+#!/bin/sh
+# unmount all drives
+umount -a -r