Skip to content

Commit

Permalink
Update software_disable.service
Browse files Browse the repository at this point in the history
  • Loading branch information
JACK-THINK committed May 22, 2018
1 parent f376028 commit 716758c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions script_bootloader/usr/software/bin/software_disable.service
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ SERVICE_FUNCTION="DISABLE"
########## END ##########
#
#
########## CHECK THE TYPE OF FIRMWARE ##########
#
if [ -z $(nvram show | grep -e '.*merlin.*') ]
then
# ASUSWRT
FIRMWARE_TYPE="ASUSWRT"
#
else
# ASUS_MERLIN
FIRMWARE_TYPE="ASUS_MERLIN"
fi
#
########## END ##########
#
#
########## NOTIFICATION ##########
#
logger -st "($(basename $0))" $$ "*--------- ${SERVICE_NAME}_${SERVICE_FUNCTION} SERVICE ---------*"
Expand Down

0 comments on commit 716758c

Please # to comment.