Update some messages

the "enter root password" message is not accurate. sudo doesn't ask for root password, it asks for the current user's password
This commit is contained in:
LukeZGD 2022-03-05 19:57:23 +08:00
parent ea5df0c045
commit 68997fbfae
4 changed files with 7 additions and 7 deletions

View File

@ -104,7 +104,7 @@ InstallDepends() {
Log "Installing dependencies..." Log "Installing dependencies..."
if [[ $platform == "linux" ]]; then if [[ $platform == "linux" ]]; then
Echo "* iOS-OTA-Downgrader will be installing dependencies from your distribution's package manager" Echo "* iOS-OTA-Downgrader will be installing dependencies from your distribution's package manager"
Echo "* Enter root password of your PC when prompted" Echo "* Enter your user password when prompted"
Input "Press Enter/Return to continue (or press Ctrl+C to cancel)" Input "Press Enter/Return to continue (or press Ctrl+C to cancel)"
read -s read -s
fi fi

View File

@ -39,7 +39,7 @@ GetDeviceValues() {
ideviceinfo2=$($ideviceinfo -s) ideviceinfo2=$($ideviceinfo -s)
if [[ $? != 0 && $1 != "NoDevice" ]]; then if [[ $? != 0 && $1 != "NoDevice" ]]; then
Log "Finding device in DFU/recovery mode..." Log "Finding device in DFU/recovery mode..."
[[ $platform == "linux" ]] && Echo "* Enter root password of your PC when prompted" [[ $platform == "linux" ]] && Echo "* Enter your user password when prompted"
DeviceState="$($irecovery -q 2>/dev/null | grep -w "MODE" | cut -c 7-)" DeviceState="$($irecovery -q 2>/dev/null | grep -w "MODE" | cut -c 7-)"
elif [[ $1 == "NoDevice" ]]; then elif [[ $1 == "NoDevice" ]]; then
Log "NoDevice argument detected. Skipping device detection" Log "NoDevice argument detected. Skipping device detection"
@ -68,7 +68,7 @@ GetDeviceValues() {
echo -e "\n${Color_R}[Error] No device detected. Please put the device in normal mode before proceeding. ${Color_N}" echo -e "\n${Color_R}[Error] No device detected. Please put the device in normal mode before proceeding. ${Color_N}"
echo "${Color_Y}* Make sure to also trust this computer by selecting \"Trust\" at the pop-up. ${Color_N}" echo "${Color_Y}* Make sure to also trust this computer by selecting \"Trust\" at the pop-up. ${Color_N}"
echo "${Color_Y}* For macOS users, double-check if the device is being detected by iTunes/Finder. ${Color_N}" echo "${Color_Y}* For macOS users, double-check if the device is being detected by iTunes/Finder. ${Color_N}"
echo "${Color_Y}* Recovery or DFU mode is also applicable. For more details regarding alternative methods, read the \"Troubleshooting\" wiki page in GitHub ${Color_N}" echo "${Color_Y}* Recovery or DFU mode is also applicable. ${Color_N}"
echo "${Color_Y}* To perform operations without an iOS device connected, add NoDevice as an argument. ${Color_N}" echo "${Color_Y}* To perform operations without an iOS device connected, add NoDevice as an argument. ${Color_N}"
echo "${Color_Y}* For more details, read the \"Troubleshooting\" wiki page in GitHub ${Color_N}" echo "${Color_Y}* For more details, read the \"Troubleshooting\" wiki page in GitHub ${Color_N}"
exit 1 exit 1
@ -194,7 +194,7 @@ CheckM8() {
Log "Entering pwnDFU mode with $pwnDFUTool..." Log "Entering pwnDFU mode with $pwnDFUTool..."
if [[ $pwnDFUTool == "ipwndfu" ]]; then if [[ $pwnDFUTool == "ipwndfu" ]]; then
cd resources/ipwndfu cd resources/ipwndfu
[[ $platform == "linux" ]] && Echo "* Enter root password of your PC when prompted" [[ $platform == "linux" ]] && Echo "* Enter your user password when prompted"
$ipwndfu -p $ipwndfu -p
if [[ $DeviceProc == 7 ]]; then if [[ $DeviceProc == 7 ]]; then
Log "Running rmsigchks.py..." Log "Running rmsigchks.py..."

View File

@ -146,7 +146,7 @@ Downgrade() {
fi fi
Log "Proceeding to futurerestore..." Log "Proceeding to futurerestore..."
[[ $platform == "linux" ]] && Echo "* Enter root password of your PC when prompted" [[ $platform == "linux" ]] && Echo "* Enter your user password when prompted"
cd resources cd resources
$SimpleHTTPServer & $SimpleHTTPServer &
ServerPID=$! ServerPID=$!