odroidxu4: wait for ethernet to become available before proceeding with init scripts

This commit is contained in:
Calin Crisan 2016-08-06 22:36:24 +03:00
parent f109394a5a
commit 441b3a8c81
6 changed files with 26 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
sn=$(cat /sys/class/net/eth0/address | tr -d ':')
sn=$(cat /sys/class/net/eth0/address 2>/dev/null| tr -d ':')
echo ${sn: -8}

View File

@ -1,5 +1,5 @@
#!/bin/bash
sn=$(cat /sys/class/net/eth0/address | tr -d ':')
sn=$(cat /sys/class/net/eth0/address 2>/dev/null| tr -d ':')
echo ${sn: -8}

View File

@ -1,5 +1,5 @@
#!/bin/bash
sn=$(cat /sys/class/net/eth0/address | tr -d ':')
sn=$(cat /sys/class/net/eth0/address 2>/dev/null | tr -d ':')
echo ${sn: -8}

View File

@ -0,0 +1,20 @@
#!/bin/bash
test -n "$os_version" || source /etc/init.d/base
case "$1" in
start)
sleep 2
;;
stop)
true
;;
*)
echo "Usage: $0 {start}"
exit 1
esac
exit $?

View File

@ -1,5 +1,5 @@
#!/bin/bash
sn=$(cat /sys/class/net/eth0/address | tr -d ':')
sn=$(cat /sys/class/net/eth0/address 2>/dev/null | tr -d ':')
echo ${sn: -8}

View File

@ -0,0 +1,2 @@
r8152