1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 20:09:55 +02:00

[package] base-files: preinit: Fixed sourcing of diag.sh in /etc/preinit. This caused errors due to frequent use of /proc/cpuinfo to determine board name to pick led layout. Now diag.sh (which only defines set_state and any helper functions) is sourced by a proper preinit function during preinit_main, which is after /proc has been brought up, unlike in /etc/preinit

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27501 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
cshore 2011-07-07 02:52:02 +00:00
parent 0be37efeae
commit 4e5d6449f6
2 changed files with 7 additions and 1 deletions

View File

@ -3,7 +3,6 @@
# Copyright (C) 2010 Vertical Communications
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
. /etc/diag.sh
pi_ifname=
pi_ip=192.168.1.1

View File

@ -0,0 +1,7 @@
#!/bin/sh
define_default_set_state() {
. /etc/diag.sh
}
boot_hook_add preinit_main define_default_set_state