[package] base-files: preinit: Fixed sourcing of diag.sh in /etc/preinit. This cause...
authorDaniel Dickinson <crazycshore@gmail.com>
Thu, 7 Jul 2011 02:52:02 +0000 (02:52 +0000)
committerDaniel Dickinson <crazycshore@gmail.com>
Thu, 7 Jul 2011 02:52:02 +0000 (02:52 +0000)
SVN-Revision: 27501

package/base-files/files/etc/preinit
package/base-files/files/lib/preinit/02_default_set_state [new file with mode: 0644]

index 9e629ab..6c6e3b1 100755 (executable)
@@ -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
diff --git a/package/base-files/files/lib/preinit/02_default_set_state b/package/base-files/files/lib/preinit/02_default_set_state
new file mode 100644 (file)
index 0000000..df43395
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+define_default_set_state() {
+       . /etc/diag.sh
+}
+
+boot_hook_add preinit_main define_default_set_state