config_get old_subnet "$ifc" netmask
}
- [ "$ip" != "$old_ip" ] \
+ [ "$1" = "ifup" ] \
+ || [ "$ip" != "$old_ip" ] \
|| [ "${broadcast:-+}" != "$old_broadcast" ] \
|| [ "${subnet:-255.255.255.0}" != "$old_subnet" ] && {
echo "udhcpc: ifconfig $interface $ip netmask ${subnet:-255.255.255.0} broadcast ${broadcast:-+}"
setup_interface ifup
;;
esac
-
- # user rules
- [ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
done
+# user rules
+[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
+
exit 0