added services option to activate services later on

master
Toerd@480 5 years ago
parent 90136e7468
commit c08cfefdb4

@ -7,7 +7,7 @@ logfile="/dev/null"
todo="install"
# Get params
while getopts "r:p:d:vuh" opt;
while getopts "r:p:d:vush" opt;
do case $opt in
h) echo -e "-r: https://link-to-repo\n-p: /link/to/prog/file\n-d: devicename for special dotfiles\n-v: verbose, please supply logfile path (default is $HOME/install.log)" && exit ;;
d) device=${OPTARG} ;;
@ -16,6 +16,7 @@ do case $opt in
a) aurhelper=${OPTARG} ;;
v) logfile="$scriptdir/install.log" ;;
u) todo="update" ;;
s) todo="services" ;;
\?) echo "-$OPTARG is not valid" >&2 && exit ;;
esac
done
@ -263,4 +264,12 @@ case $todo in
ready_steady_go
clear
;;
services)
init
startup_msg
pre_update
enable_service "netctl-auto@wlp3s0" "--user offlineimap@philip_thi" "--user offlineimap@philip_posteo" "--user offlineimap@philip_gmail"
ready_steady_go
clear
;;
esac

Loading…
Cancel
Save