summaryrefslogtreecommitdiff
path: root/package/base-files/default/etc/init.d/S98done
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/default/etc/init.d/S98done')
-rwxr-xr-xpackage/base-files/default/etc/init.d/S98done9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/base-files/default/etc/init.d/S98done b/package/base-files/default/etc/init.d/S98done
new file mode 100755
index 0000000000..5d5ab49ce3
--- /dev/null
+++ b/package/base-files/default/etc/init.d/S98done
@@ -0,0 +1,9 @@
+#!/bin/sh
+sysctl -p >&-
+
+# automagically run firstboot
+{ mount|grep "on / type tmpfs" 1>&-; } && {
+ lock /tmp/.switch2jffs
+ firstboot switch2jffs
+ lock -u /tmp/.switch2jffs
+}