added wifi password ssid status get

This commit is contained in:
wt committed 2024-07-09 10:15:23 +07:00
1 parent eb97beecac
commit d5cbaa8d38
15 files changed
+268 -13

No files matched your search

+6 -4
View File
@@ -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
+1 -1
View File
@@ -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)
+1
View File
@@ -0,0 +1 @@
0