large init script cleanup and merge of whiterussian changes, new dnsmasq config handling
[openwrt/svn-archive/archive.git] / openwrt / package / base-files / default / etc / init.d / S98done
diff --git a/openwrt/package/base-files/default/etc/init.d/S98done b/openwrt/package/base-files/default/etc/init.d/S98done
new file mode 100755 (executable)
index 0000000..5d5ab49
--- /dev/null
@@ -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
+}