dhcp/12-dhcpd
Tomas Hozza c0272c7d8a SystemD unit files don't use Environment files any more (#850558)
NetworkManager dispatcher script doesn't use DHCPDARGS any more
2012-08-24 13:49:51 +02:00

12 lines
335 B
Bash

#!/bin/bash
export LC_ALL=C
# restart dhcpd whenever $1 interface is brought up by NM (rhbz #565921)
if [ "$2" = "up" ]; then
# exit if the service is not configured to be started in the current runlevel
/bin/systemctl is-enabled dhcpd.service || exit 0
# restart service
/bin/systemctl restart dhcpd.service || :
fi