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

9 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
}