add eth0 check

Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
Gwenhael Le Moine 2011-10-23 18:46:35 +02:00
parent 6e964477c2
commit 46dfbcd46d

View file

@ -10,6 +10,9 @@
# dirty hack to let mortals adjust brightness on this laptop
chmod 666 /sys/class/backlight/intel_backlight/brightness
# no need to keep eth0 busy if it's for nothing
ifconfig eth0 | grep -q "inet addr:[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*" || modprobe -r atl1c
# Start vboxdrv
# If you do not wish this to be executed here then comment it out,
# and the installer will skip it next time.