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