From 85668687d84405d3889aa7ffb01d16db48990070 Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 17 Nov 2006 03:07:10 +0000 Subject: add failsafe mode and mini_fo mounting support for brcm-2.4 and brcm-2.6 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5544 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/brcm/etc/init.d/done | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package/base-files/brcm/etc/init.d/done (limited to 'package/base-files/brcm/etc/init.d/done') diff --git a/package/base-files/brcm/etc/init.d/done b/package/base-files/brcm/etc/init.d/done new file mode 100644 index 000000000..0640b6193 --- /dev/null +++ b/package/base-files/brcm/etc/init.d/done @@ -0,0 +1,15 @@ +#!/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 + } + + # set leds to normal state + . /etc/diag.sh + set_state done +} -- cgit v1.2.3