I'm done for the night.
This commit is contained in:
parent
97ee71739b
commit
934b9aa85d
3 changed files with 43 additions and 8 deletions
10
FE2TY-CLI
Normal file → Executable file
10
FE2TY-CLI
Normal file → Executable file
|
@ -4,6 +4,16 @@ if [ "$EUID" -ne 0 ]
|
|||
exit
|
||||
fi
|
||||
|
||||
if [ ! -f /bin/git ]
|
||||
then echo "install git before running."
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -f /bin/jq ]
|
||||
then echo "install jq before running."
|
||||
exit
|
||||
fi
|
||||
|
||||
# By RSCC
|
||||
## Unlicense
|
||||
|
||||
|
|
19
FE2TY-KDIALOG
Normal file → Executable file
19
FE2TY-KDIALOG
Normal file → Executable file
|
@ -9,6 +9,21 @@ if [ ! -f /bin/kdialog ]
|
|||
exit
|
||||
fi
|
||||
|
||||
if [ ! -f /bin/git ]
|
||||
then echo "install git before running."
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -f /bin/jq ]
|
||||
then echo "install jq before running."
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -f /bin/qdbus-qt6 ]
|
||||
then echo "install qdbus-qt6 before running."
|
||||
exit
|
||||
fi
|
||||
|
||||
# By RSCC
|
||||
## Unlicense
|
||||
|
||||
|
@ -16,12 +31,12 @@ main() {
|
|||
case "$(kdialog --combobox "Choose an option:" "Install TyrianOS" "Revert TyrianOS installation")" in
|
||||
"Install TyrianOS") ty.install ;;
|
||||
"Revert TyrianOS installation") ty.revert ;;
|
||||
*) printf "usage:\nFE2TY i - install TyrianOS\nFE2TY r - uninstall TyrianOS and revert to old deployment\n" ;;
|
||||
*) echo "OK!" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
ty.install() {
|
||||
kdialog --title "FE2TY - Installing TyrianOS" --warningcontinuecancel "by pressing enter, you agree that this tool is not considered an official tool to install TyrianOS and should only be used as a last resort from an existing Fedora installation. therefore, the creators of this script have absolutely no responsibility in the case of something happening, as it is very experimental. press [ENTER] to agree, spam [CTRL] + [C] to quit."
|
||||
kdialog --title "FE2TY - Installing TyrianOS" --warningcontinuecancel "By pressing enter, you agree that this tool is not considered an official tool to install TyrianOS and should only be used as a last resort from an existing Fedora installation. Therefore, the creators of this script have absolutely no responsibility in the case of something happening, as it is very experimental. Do you wish to continue?" || exit 1
|
||||
dbusRef=`kdialog --progressbar "Initializing" 100`
|
||||
limsg s 1 i "Getting current deployment origin ref and backing up..."
|
||||
qdbus-qt6 $dbusRef Set "" value 1
|
||||
|
|
22
FE2TY-ZENITY
Normal file → Executable file
22
FE2TY-ZENITY
Normal file → Executable file
|
@ -4,6 +4,16 @@ if [ "$EUID" -ne 0 ]
|
|||
exit
|
||||
fi
|
||||
|
||||
if [ ! -f /bin/git ]
|
||||
then echo "install git before running."
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -f /bin/jq ]
|
||||
then echo "install jq before running."
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -f /bin/zenity ]
|
||||
then echo "install Zenity before running."
|
||||
exit
|
||||
|
@ -14,19 +24,19 @@ fi
|
|||
|
||||
main() {
|
||||
OPT=$(zenity --list \
|
||||
--title="Choose an option"
|
||||
--column="option"
|
||||
"Install TyrianOS"\
|
||||
--title="Choose an option" \
|
||||
--column="option" \
|
||||
"Install TyrianOS" \
|
||||
"Revert TyrianOS installation")
|
||||
case "$OPT" in
|
||||
"Install TyrianOS") ty.install ;;
|
||||
"Revert TyrianOS installation") ty.revert ;;
|
||||
*) printf "usage:\nFE2TY i - install TyrianOS\nFE2TY r - uninstall TyrianOS and revert to old deployment\n" ;;
|
||||
*) echo "OK!" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
ty.install() {
|
||||
zenity --question --text="by pressing enter, you agree that this tool is not considered an official tool to install TyrianOS and should only be used as a last resort from an existing Fedora installation. therefore, the creators of this script have absolutely no responsibility in the case of something happening, as it is very experimental. do you really wish to proceed?" || exit 1
|
||||
zenity --question --text="By pressing enter, you agree that this tool is not considered an official tool to install TyrianOS and should only be used as a last resort from an existing Fedora installation. Therefore, the creators of this script have absolutely no responsibility in the case of something happening, as it is very experimental. Do you really wish to proceed?" || exit 1
|
||||
(
|
||||
limsg s 1 i "Getting current deployment origin ref and backing up..."
|
||||
echo "0"
|
||||
|
@ -70,7 +80,7 @@ zenity --progress \
|
|||
}
|
||||
|
||||
ty.revert() {
|
||||
zenity --question --text="you are about to revert to the OS base installed before TyrianOS. do you really wish to proceed?" || exit 1
|
||||
zenity --question --text="You are about to revert to the OS base installed before TyrianOS. Do you really wish to proceed?" || exit 1
|
||||
(
|
||||
limsg s 1 i "Looking for backed up remote reference file..."
|
||||
echo "33"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue