浏览代码

fixed failing systemd commands

tags/v1.0.0
Pascal Gloor 6 年前
父节点
当前提交
8b399bb63d
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      Makefile

+ 3
- 3
Makefile 查看文件

rm -f $(TARGETS) $(OBJ) rm -f $(TARGETS) $(OBJ)


install: install:
systemctl stop dhcp_protect
systemctl stop dhcp_protect || true
cp dhcp_protect /usr/local/bin/ cp dhcp_protect /usr/local/bin/
cp dhcp_protect.conf /usr/local/etc/ cp dhcp_protect.conf /usr/local/etc/
cp dhcp_protect.service /etc/systemd/system/ cp dhcp_protect.service /etc/systemd/system/
systemctl start dhcp_protect systemctl start dhcp_protect


uninstall: uninstall:
systemctl stop dhcp_protect
systemctl disable dhcp_protect
systemctl stop dhcp_protect || true
systemctl disable dhcp_protect || true
rm -f /usr/local/bin/dhcp_protect rm -f /usr/local/bin/dhcp_protect
rm -f /usr/local/etc/dhcp_protect.conf rm -f /usr/local/etc/dhcp_protect.conf
rm -f /etc/systemd/system/dhcp_protect.service rm -f /etc/systemd/system/dhcp_protect.service

正在加载...
取消
保存