14 lines
197 B
Bash
14 lines
197 B
Bash
|
#!/bin/sh
|
||
|
if [ $1 != "bound" ]; then
|
||
|
exit 0
|
||
|
fi
|
||
|
if [ "$ip" == "" ]; then
|
||
|
exit 0
|
||
|
fi
|
||
|
echo "dhcp_result"
|
||
|
echo "dev:"$interface
|
||
|
echo "ip:"$ip
|
||
|
echo "mask:"$subnet
|
||
|
echo "gw:"$router
|
||
|
echo "dns:"$dns
|