source: trunk/package/base-files/files/etc/init.d/done

Last change on this file was 44942, checked in by nbd, 16 months ago

fstools: update to the latest version, makes interrupted first boot more reliable

Use xattr to store the filesystem initialization state of the overlay.
As long as the filesystem is not marked as initialized yet (happens in
/etc/init.d/done), all overlay data (except for sysupgrade.tgz) will be
discarded before the system is allowed to boot

Signed-off-by: Felix Fietkau <nbd@…>

  • Property svn:executable set to *
File size: 255 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2006 OpenWrt.org
3
4START=95
5boot() {
6        mount_root done
7        rm -f /sysupgrade.tgz
8
9        # process user commands
10        [ -f /etc/rc.local ] && {
11                sh /etc/rc.local
12        }
13
14        # set leds to normal state
15        . /etc/diag.sh
16        set_state done
17}
Note: See TracBrowser for help on using the repository browser.