Openwrt/openwrt/package/base-files/default/etc/init.d/S98done

10 lines
175 B
Bash
Executable File

#!/bin/sh
sysctl -p >&-
# automagically run firstboot
{ mount|grep "on / type tmpfs" 1>&-; } && {
lock /tmp/.switch2jffs
firstboot switch2jffs
lock -u /tmp/.switch2jffs
}