diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-12-10 04:08:33 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2019-01-05 04:14:52 +0300 |
commit | d5c1f0058b43c22ebb132f51df0ea144fbd927ec (patch) | |
tree | b826d4fefb22afc2513a57e9464a486b9fd24dcc /bin/ncp-suggestions | |
parent | 21fee19452410817d26b6caebd0a91b5968b0a44 (diff) |
rework to use JSON based cfg and more
Diffstat (limited to 'bin/ncp-suggestions')
-rw-r--r-- | bin/ncp-suggestions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ncp-suggestions b/bin/ncp-suggestions index 77559732..5f20bd85 100644 --- a/bin/ncp-suggestions +++ b/bin/ncp-suggestions @@ -14,12 +14,12 @@ OUT="$@" -DNSMASQ_ON="$( grep "^ACTIVE_=" /usr/local/etc/ncp-config.d/dnsmasq.sh | cut -d'=' -f2 )" +source /usr/local/etc/library.sh grep -q "distribution|.*bian GNU/Linux 9,*" <<<"$OUT" || \ echo -e "You are using an unsupported distro release. Please upgrade to latest Debian/Raspbian" -[[ $DNSMASQ_ON != "yes" ]] && \ +is_active_app dnsmasq && \ grep -q "NAT loopback|no" <<<"$OUT" && \ echo -e "\nYou should enable dnsmasq to use your domain inside home" |