mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2024-06-02 19:47:51 -04:00
auto sudo fixes
This commit is contained in:
parent
7006a4f2e9
commit
1e54f06129
|
@ -36,7 +36,7 @@ Plugins_checkPassword(){
|
|||
fi
|
||||
fi
|
||||
fi
|
||||
return $password
|
||||
echo $password
|
||||
}
|
||||
|
||||
Plugins_installPluginLoader(){
|
||||
|
|
58
setup.sh
58
setup.sh
|
@ -469,39 +469,37 @@ createDesktopIcons
|
|||
##
|
||||
#
|
||||
|
||||
#if [ "$system" != "darwin" ]; then
|
||||
if [ "$system" != "darwin" ]; then
|
||||
|
||||
#If the user is not using chimera we assume he has no pass ( deck user )
|
||||
# if [ "$system" = "chimeraos" ]; then
|
||||
# password="gamer"
|
||||
# else
|
||||
# password="Decky!"
|
||||
# fi
|
||||
# #We try to create a temp password
|
||||
# pwstatus=0
|
||||
# yes "$password" | passwd $(whoami) && "$password" | sudo -v -S &>/dev/null && pwstatus=1 || echo "sudo password was incorrect" #refresh sudo cache
|
||||
# # We can't create the pass?we ask for it
|
||||
# if [ $pwstatus = 0 ]; then
|
||||
# read -r password <<< $(Plugins_checkPassword "newPass")
|
||||
# fi
|
||||
#
|
||||
# if ( echo "$password" | sudo -S -k true ); then
|
||||
# echo $password | sudo -v -S && {
|
||||
# Plugins_installEmuDecky $password
|
||||
# if [ "$system" == "chimeraos" ]; then
|
||||
# Plugins_installPowerControl $password
|
||||
# else
|
||||
# Plugins_installPowerTools $password
|
||||
# fi
|
||||
# Plugins_installPluginLoader $password
|
||||
# }
|
||||
# fi
|
||||
#
|
||||
# if [ $password = "Decky!" ]; then
|
||||
# Plugins_install_cleanup "Decky!"
|
||||
# fi
|
||||
if [ "$system" = "chimeraos" ]; then
|
||||
password="gamer"
|
||||
else
|
||||
password="Decky!"
|
||||
fi
|
||||
#We try to create a temp password
|
||||
pwstatus=0
|
||||
yes "$password" | passwd $(whoami) && echo "$password" | sudo -v -S &>/dev/null && pwstatus=1 || echo "sudo password was incorrect" #refresh sudo cache
|
||||
# We install everything in case we've succesfully created a password
|
||||
if [ $pwstatus = 1 ]; then
|
||||
if ( echo "$password" | sudo -S -k true ); then
|
||||
echo $password | sudo -v -S && {
|
||||
Plugins_installEmuDecky $password
|
||||
if [ "$system" == "chimeraos" ]; then
|
||||
Plugins_installPowerControl $password
|
||||
else
|
||||
Plugins_installPowerTools $password
|
||||
fi
|
||||
Plugins_installPluginLoader $password
|
||||
}
|
||||
fi
|
||||
|
||||
#fi
|
||||
if [ $password = "Decky!" ]; then
|
||||
Plugins_install_cleanup "Decky!"
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
#GyroDSU
|
||||
Plugins_installSteamDeckGyroDSU
|
||||
|
|
Loading…
Reference in a new issue