1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-07 12:30:47 -07:00
moth/packages/p2client/service/eth0/run
2012-06-11 14:37:39 -06:00

11 lines
176 B
Bash
Executable file

#! /bin/sh
exec 2>&1
if grep 'debug' /proc/cmdline; then
ip link set dev eth0 up
ip addr add dev eth0 10.0.0.110/24
exec sleep 8d
else
exec udhcpc -f eth0
fi