|
|
@ -7,7 +7,7 @@ logfile="/dev/null"
|
|
|
|
todo="install"
|
|
|
|
todo="install"
|
|
|
|
|
|
|
|
|
|
|
|
# Get params
|
|
|
|
# Get params
|
|
|
|
while getopts "r:p:d:vuh" opt;
|
|
|
|
while getopts "r:p:d:vush" opt;
|
|
|
|
do case $opt in
|
|
|
|
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 ;;
|
|
|
|
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} ;;
|
|
|
|
d) device=${OPTARG} ;;
|
|
|
@ -16,6 +16,7 @@ do case $opt in
|
|
|
|
a) aurhelper=${OPTARG} ;;
|
|
|
|
a) aurhelper=${OPTARG} ;;
|
|
|
|
v) logfile="$scriptdir/install.log" ;;
|
|
|
|
v) logfile="$scriptdir/install.log" ;;
|
|
|
|
u) todo="update" ;;
|
|
|
|
u) todo="update" ;;
|
|
|
|
|
|
|
|
s) todo="services" ;;
|
|
|
|
\?) echo "-$OPTARG is not valid" >&2 && exit ;;
|
|
|
|
\?) echo "-$OPTARG is not valid" >&2 && exit ;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
done
|
|
|
@ -249,7 +250,7 @@ case $todo in
|
|
|
|
set_permissions "Defaults timestamp_timeout=45\n%wheel ALL=(ALL) ALL\n%wheel ALL=(ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/systemctl suspend,/usr/bin/wifi-menu,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Syyu,/usr/bin/pacman -Syyu --noconfirm,/usr/bin/loadkeys"
|
|
|
|
set_permissions "Defaults timestamp_timeout=45\n%wheel ALL=(ALL) ALL\n%wheel ALL=(ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/systemctl suspend,/usr/bin/wifi-menu,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Syyu,/usr/bin/pacman -Syyu --noconfirm,/usr/bin/loadkeys"
|
|
|
|
no_beep
|
|
|
|
no_beep
|
|
|
|
set_system_stuff
|
|
|
|
set_system_stuff
|
|
|
|
enable_service "--user syncthing" "netctl-auto@wlp3s0" "--user offlineimap@philip_thi" "--user offlineimap@philip_posteo" "--user offlineimap@philip_gmail"
|
|
|
|
enable_service "--user syncthing" "netctl-auto@wlp3s0" "--user offlineimap@philip_thi" "--user offlineimap@philip_posteo" "--user offlineimap@philip_gmail"
|
|
|
|
ready_steady_go
|
|
|
|
ready_steady_go
|
|
|
|
clear
|
|
|
|
clear
|
|
|
|
;;
|
|
|
|
;;
|
|
|
@ -263,4 +264,12 @@ case $todo in
|
|
|
|
ready_steady_go
|
|
|
|
ready_steady_go
|
|
|
|
clear
|
|
|
|
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
|
|
|
|
esac
|
|
|
|