base-files: keep sysupgrade.tgz until /etc/init.d/done has been called
[openwrt.git] / package / base-files / files / etc / init.d / done
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 START=95
5 boot() {
6         [ -d /tmp/root ] && 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 }