1
0
mirror of https://github.com/seahu/rflink.git synced 2025-12-10 16:07:23 +01:00

little change in make for install and uninstall directive

This commit is contained in:
Ondrej Lycka
2017-06-30 08:21:15 +02:00
parent 23ca7f2cf0
commit 5ea736850c
2 changed files with 3 additions and 4 deletions

View File

@@ -42,12 +42,12 @@ install: ./RFlink
if ! [ -f "/opt/rflink/RFlink" ] ; then cp "./RFlink" "/opt/rflink/" ; fi ;
if ! [ -f "/etc/rflink.conf" ] ; then cp "./etc/rflink.conf" "/etc/" ; fi ;
if ! [ -f "/etc/init.d/rflink.sh" ] ; then cp "./etc/init.d/rflink.sh" "/etc/init.d/" ; fi
update-rc.d rflink defaults
update-rc.d rflink enable
update-rc.d rflink.sh defaults
update-rc.d rflink.sh enable
# must be run as sudo (sudo make uninstall)
uninstall:
update-rc.d rflink remove
if [ -f "/etc/init.d/rflink.sh" ] ; then update-rc.d rflink.sh remove ; fi
if [ -f "/etc/init.d/rflink.sh" ] ; then /etc/init.d/rflink.sh stop ; fi
if [ -f "/etc/init.d/rflink.sh" ] ; then rm "/etc/init.d/rflink.sh" ; fi
if [ -f "/etc/rflink.conf" ] ; then rm "/etc/rflink.conf" ; fi ;