added Proprietary media codecs for openSUSE

This commit is contained in:
Jonas Forsberg 2020-08-05 17:41:06 +02:00
parent 667d0a6cac
commit 22e4d8aa7b

View File

@ -21,6 +21,7 @@ function printHelp(){
cat << EOF
Usage ${0##*/} [options..]
-h,-?, --help Show help and exit
-c, --codecs install propriatory media codecs (openSUSE)
-f, --firefox configure firefox and install addons
-g, --gnome configure gnome and install extentions
-G, --google-chrome configure and install google-chrome extentions
@ -145,9 +146,18 @@ function chrome_config(){
set -e
google-chrome https://chrome.google.com/webstore/detail/gnome-shell-integration/gphhapmejobijbbhgpjhcjognlahblep 2> /dev/null
}
function suse_install_codecs(){
new_log "Install Proprietary media codecs?"
log "WARNING! This is for openSUSE only"
if asktobreak; then
return
fi
sudo "$HOME/bin/install_codecs"
}
#initialize all options
ALL=true
CODECS=false
FIREFOX=false
GNOME=false
SALT=false
@ -156,6 +166,10 @@ CHROME=false
ANSWER_YES=false
while :; do
case $1 in
-c|--codecs)
CODECS=true
ALL=false
;;
-h|-\?|--help)
printHelp
exit
@ -202,5 +216,6 @@ done
[[ $ALL == true ]] || [[ $FIREFOX == true ]] && firefox_config
[[ $ALL == true ]] || [[ $CHROME == true ]] && chrome_config
[[ $ALL == true ]] || [[ $GNOME == true ]] && gnome_config
[[ $ALL == true ]] || [[ $CODECS == true ]] && suse_install_codecs
printf "\n DONE!!!!!!!\n"