Optimize install script

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao
2018-01-18 23:08:28 +08:00
parent c4aec37219
commit ca5ae290a9
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
update-rc.d rttys remove update-rc.d rttys remove
cp ../../../../bin/rttys /usr/sbin/ which rttys > /dev/null && rm `which rttys`
cp ../../../../bin/rttys /usr/local/sbin/
cp rttys.init /etc/init.d/rttys cp rttys.init /etc/init.d/rttys
update-rc.d rttys defaults update-rc.d rttys defaults
+1 -1
View File
@@ -17,7 +17,7 @@ RTTYSPID=/var/run/rttys.pid
PORT=5912 PORT=5912
do_start () { do_start () {
start-stop-daemon --start --make-pidfile --pidfile $RTTYSPID --background --exec /usr/sbin/rttys -- -port $PORT start-stop-daemon --start --make-pidfile --pidfile $RTTYSPID --background --exec /usr/local/sbin/rttys -- -port $PORT
} }
do_stop () { do_stop () {