Browse Source

Name change to nin

nin is nmcli
master
Brandon Nolet 1 year ago
parent
commit
f875cec0ef
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      nin.sh

nmcli-basic.sh → nin.sh View File

@@ -1,7 +1,7 @@
#!/bin/bash

# Version 0.5
# Author/Copyright: Brandon Nolet
# Author: Brandon Nolet
# Contact: nolet.brandon@gmail.com

function usage() {
@@ -14,14 +14,14 @@ function usage() {
to set the interface to. Otherwise the syntax is as follows

Syntax:
./nmcli-basic.sh [dynamic|static|usage]
./nin.sh [dynamic|static|usage]
"
}

#Global Vars
NMCLI_BIN=$(which nmcli)
TIMESTAMP=$(date +%H:%M:%S)
LOGFILE=nmcli-basic.log
LOGFILE=nin.log

# `setstatic` works as a state machine, running through
# each case statement in order of operation. This is Done
@@ -178,7 +178,7 @@ function getchoice() {
*)
echo
echo "Sorry, that's not a valid option."
echo "Try ./nmcli-basic usage for more information."
echo "Try ./nin usage for more information."
echo
sleep 1
getchoice
@@ -186,9 +186,9 @@ function getchoice() {
esac
}

echo "Start of script run: `date +%H:%M:%S`" >> nmcli-basic.log
echo "Start of script run: `date +%H:%M:%S`" >> $LOGFILE
getchoice $1
echo "End of script run: `date +%H:%M:%S`" >> nmcli-basic.log
echo "End of script run: `date +%H:%M:%S`" >> $LOGFILE

exit 0


Loading…
Cancel
Save