-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmml.tmp
41 lines (35 loc) · 965 Bytes
/
mml.tmp
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
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Module Header
MODULENAME="Multi-Module Launcher (MML)"
MODULEVERS="1.0"
MODULECRED="REDD"
modcreds;
# End of Module Header
# Place Module Files below that you want to launch in the order you want.
# Example: MODULES=(auto-update-system ip_data subscan email)
# All current modules available please see. - https://github.com/private-locker/NET-UP-modules
MODULES=()
arrow_status "Executing the Multi-Module Launcher.."
do_break;
if [[ "$MODULES" == "" ]]; then
mod_error "Please edit mml module in:"
mod_error " -> $MODULEDIR"
do_break;
exitnetup;
fi
for i in ${MODULES[@]}; do
do_break;
mod_noti "Running Module: $i"
mod_status "--------------------------"
do_break;
if [ -f "$MODULEDIR/$i.tmp" ]; then
source "$MODULEDIR/$i.tmp"
elif [ -f "$MODULEDIR/$i.mdu" ]; then
source "$MODULEDIR/$i.mdu"
else
mod_error "No module by the name of $i found."
fi
do_break
done
do_break;
check_good "Multi-Module Launcher Completed."