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
SVN-Revision: 27501master
parent
dd4934a943
commit
1f69f4cf64
@ -0,0 +1,7 @@ |
||||
#!/bin/sh |
||||
|
||||
define_default_set_state() { |
||||
. /etc/diag.sh |
||||
} |
||||
|
||||
boot_hook_add preinit_main define_default_set_state |
Loading…
Reference in new issue