mirror of https://github.com/hak5/openwrt.git
21 lines
308 B
Bash
Executable File
21 lines
308 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
START=95
|
|
boot() {
|
|
[ -d /tmp/root ] && {
|
|
lock /tmp/.switch2jffs
|
|
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
|
|
}
|