diff options
Diffstat (limited to 'satellit_installer/static_files/system/usr/local')
-rwxr-xr-x | satellit_installer/static_files/system/usr/local/bin/netsetup (renamed from satellit_installer/static_files/system/usr/local/sbin/netsetup) | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/satellit_installer/static_files/system/usr/local/sbin/netsetup b/satellit_installer/static_files/system/usr/local/bin/netsetup index 6616c50..a824739 100755 --- a/satellit_installer/static_files/system/usr/local/sbin/netsetup +++ b/satellit_installer/static_files/system/usr/local/bin/netsetup @@ -1,5 +1,10 @@ #!/bin/bash +if [ "$UID" != 0 ]; then + exec sudo "$0" "$@" + exit 1 +fi + DATUM=$(date +%Y%m%d_%H%M%S) INTERFACES="/etc/network/interfaces" ETHALIAS=$( ifconfig -a | grep -oEm1 '^e\w+' ) |