-
Notifications
You must be signed in to change notification settings - Fork 4
/
netup
executable file
·32 lines (28 loc) · 853 Bytes
/
netup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
#
## Internal Required Variables. (DO NOT CHANGE!)
get_dir () {
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do
DIRECTORY="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$( readlink "$SOURCE" )"
[[ $SOURCE != /* ]] && SOURCE="$DIRECTORY/$SOURCE"
done
DIRECTORY="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
echo "$DIRECTORY"
}
DIR=$(get_dir)
source $DIR/src/chkinstall
source $DIR/src/commandchk
source $DIR/src/initialize
source $DIR/src/exec
#############################################################
## User Adjustable Variables. - For More info please read ##
## the README.txt in the modules folder. ##
#############################################################
INTERFACE=NOTSETUP
AUTOREBOOT=NO
AUTOEXIT=YES
do_usage $@
do_init $@
exitnetup;