summaryrefslogtreecommitdiff
path: root/package/base-files/default/etc/init.d/S98done
blob: a1ea5ad4389ffacce2dc7bbde4999ec718d34460 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org

sysctl -p >&-

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