mirror of
https://github.com/netfun2000/rttys_zhaojh329.git
synced 2026-02-27 09:53:24 +08:00
Optimize install script
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
+2
-1
@@ -2,6 +2,7 @@
|
||||
|
||||
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
|
||||
update-rc.d rttys defaults
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ RTTYSPID=/var/run/rttys.pid
|
||||
PORT=5912
|
||||
|
||||
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 () {
|
||||
|
||||
Reference in New Issue
Block a user