mirror of
https://github.com/seahu/rflink.git
synced 2026-10-24 13:41:14 +02:00
little change in make for install and uninstall directive
This commit is contained in:
1 parent
23ca7f2cf0
commit
5ea736850c
2 files changed
+3
-4
No files matched your search
+3
-3
@@ -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 ;
|
||||
|
||||
Reference in new issue
Block a user