etc-gentoo/hprofile/example-profiles/net/scripts/oslo.start

15 lines
214 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
modprobe eth1
iwconfig eth1 key 0123456789
started=0
if /etc/init.d/net.eth1 status | grep "started" >/dev/null ; then
started=1
fi
if test "${started}" = "0" ; then
/etc/init.d/net.eth1 start
fi