1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-02 16:34:05 +02:00
openwrt-xburst/package/base-files/files/etc/init.d/done
jow f4a0466de8 [package] base-files: introduce a ready-to-use /etc/rc.local to let users run custom commands on init without creating custom init scripts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17571 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-11 21:35:03 +00:00

21 lines
318 B
Bash
Executable File

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=95
boot() {
[ -d /tmp/root ] && {
lock /tmp/.switch2jffs
firstboot switch2jffs
lock -u /tmp/.switch2jffs
}
# process user commands
[ -f /etc/rc.local ] && {
sh /etc/rc.local
}
# set leds to normal state
. /etc/diag.sh
set_state done
}