From ca6fa2285b6bc3372ae6164039dcd248b6a53f2e Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Thu, 24 Jan 2019 10:01:23 +0100 Subject: [PATCH] check distro and root --- static/static_ip.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/static_ip.sh b/static/static_ip.sh index da6970c5..04721fcc 100644 --- a/static/static_ip.sh +++ b/static/static_ip.sh @@ -14,6 +14,12 @@ unset FIRST_IFACE DEBUG=0 debug_mode +# Must be root +root_check + +# Check Ubuntu version +check_distro_version + clear # Copy old interfaces files