diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ncp/TOOLS/nc-maintenance.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/ncp/TOOLS/nc-maintenance.sh b/bin/ncp/TOOLS/nc-maintenance.sh index a03767d6..c6d18a06 100644 --- a/bin/ncp/TOOLS/nc-maintenance.sh +++ b/bin/ncp/TOOLS/nc-maintenance.sh @@ -9,13 +9,18 @@ # Made in Taiwan (Republic of China) # +is_active() +{ + grep -q enabled <(ncc maintenance:mode) +} + configure() { - [[ $ACTIVE != "yes" ]] && { + [[ "$ACTIVE" != "yes" ]] && { ncc maintenance:mode --off - return 0 + return $? } - ncc maintenance:mode --on + ncc maintenance:mode --on } install(){ :; } |