summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/functions
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2007-07-02 17:05:02 +0000
committerMike Westerhof <mwester@dls.net>2007-07-02 17:05:02 +0000
commit24db8cd534091a85a26472b80fd0f2eb613c7be4 (patch)
tree423636173bb82d8512e54dfb9e459ccd62b4d604 /packages/slugos-init/files/functions
parentd65fd4bd8ca6ff9fd758a933b867f10e903a9f7a (diff)
SlugOS init files: fixed network boot code for dsmg600 and added delay to ifup
(fix dhcp timeout before link negotiation complete) for network boot. Added kexec boot script (no turnup support yet, manual only).
Diffstat (limited to 'packages/slugos-init/files/functions')
-rw-r--r--packages/slugos-init/files/functions2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/slugos-init/files/functions b/packages/slugos-init/files/functions
index c329171128..18f4009ee7 100644
--- a/packages/slugos-init/files/functions
+++ b/packages/slugos-init/files/functions
@@ -274,6 +274,8 @@ ifup(){
if test "$(config boot)" != static
then
test -n "$hostname" && HOSTNAME="-H $hostname"
+ # Pause a moment in case link negotiation takes a while
+ sleep 3
# The script writes the required shell variable assignments
# to file descriptor 9
eval $(udhcpc -i "$iface" -n -q -r "$ip" $HOSTNAME -s /boot/udhcpc.script 9>&1 >/dev/null)