mirror of
https://github.com/seahu/rflink.git
synced 2025-12-10 07:57:23 +01:00
little change in make for install and uninstall directive
This commit is contained in:
@@ -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 ;
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
dir="/opt/rflink"
|
||||
cmd="./RFlink"
|
||||
cmd_to_syslog="./RFlink-syslog.sh"
|
||||
user=""
|
||||
TCP_port=5050
|
||||
PIN_TX=28
|
||||
|
||||
Reference in New Issue
Block a user