2024-02-15 22:07:44 +01:00
|
|
|
#!/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
|
2024-02-15 22:07:50 +01:00
|
|
|
dns=`echo $dns |awk -F ' ' '{print $1}'`
|
2024-02-15 22:07:44 +01:00
|
|
|
echo "dns:"$dns
|