We use deb-systemd-invoke instead of systemdctl (#16)

This commit is contained in:
Sukchan Lee 2018-02-13 03:38:33 +00:00
parent 61f796d341
commit 926e73e87d
1 changed files with 5 additions and 2 deletions

View File

@ -27,8 +27,11 @@ case "$1" in
if [ ! -L /etc/systemd/system/multi-user.target.wants/systemd-networkd.service ]; then
systemctl enable systemd-networkd
fi
systemctl restart systemd-udevd
systemctl restart systemd-networkd
deb-systemd-invoke restart systemd-networkd
if test -f /etc/sysctl.d/30-nextepc.conf && grep "pgwtun" /proc/net/dev > /dev/null; then
echo "net.ipv6.conf.pgwtun.disable_ipv6=0" > /etc/sysctl.d/30-nextepc.conf
sysctl -p /etc/sysctl.d/30-nextepc.conf
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)