added wifi password ssid status get
This commit is contained in:
1 parent
eb97beecac
commit
d5cbaa8d38
15 files changed
+268
-13
No files matched your search
@@ -7,16 +7,18 @@ init () {
|
||||
test -f $DAEMON || exit 0
|
||||
case "$1" in
|
||||
start)
|
||||
echo "Starting $DESC..."
|
||||
notify $NOTIFY_START
|
||||
if [ $LOG ] ; then
|
||||
$DAEMON $PARAMS 2>>/var/log/$LOG &
|
||||
$start_command $start_params 2>>/var/log/$LOG &
|
||||
check $?
|
||||
else
|
||||
$DAEMON $PARAMS &>/dev/null &
|
||||
$start_command $start_params &>/dev/null &
|
||||
check $?
|
||||
fi
|
||||
echo $! > $PIDFILE
|
||||
;;
|
||||
stop)
|
||||
printf "\nStopping $DESC..."
|
||||
notify $NOTIFY_STOP
|
||||
if [ $STOP ] ; then
|
||||
$STOP $PARAMS
|
||||
else
|
||||
|
||||
@@ -8,7 +8,7 @@ Red='\033[0;31m'
|
||||
case "$1" in
|
||||
start)
|
||||
notify "Starting telnet "
|
||||
telnetd -p $(cat /etc/openrouter/telnet/port)
|
||||
telnetd -S -p $(cat /etc/openrouter/telnet/port)
|
||||
check $?
|
||||
;;
|
||||
stop)
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
Reference in new issue
Block a user