kernel_samsung_a53x/build.sh

55 lines
1.2 KiB
Bash
Raw Normal View History

2023-10-17 13:17:51 +02:00
#!/bin/bash
2024-11-17 22:11:18 +01:00
command_one() {
2024-11-19 22:46:43 +01:00
echo "Building without KernelSU..."
2024-11-17 22:11:18 +01:00
./kernel_build/build.sh "$(pwd)" || exit 1
}
command_two() {
2024-11-19 22:46:43 +01:00
echo "Building with KernelSU..."
./kernel_build/build-ksu.sh "$(pwd)" || exit 1
2024-11-17 22:11:18 +01:00
}
command_three() {
2024-12-03 18:20:19 +01:00
rm -rf setup.sh*
rm -rf KernelSU*
wget https://raw.githubusercontent.com/nitanmarcel/KernelSU-susfs/refs/heads/main/kernel/setup.sh
chmod +x setup.sh
./setup.sh*
rm -rf setup.sh
}
command_four() {
2024-11-17 22:11:18 +01:00
echo "Exiting, really that quickly? :sob:"
}
# Main loop
while true; do
echo ""
echo "Choose what to do:"
2024-11-19 22:44:48 +01:00
echo "1: Build FireAsf kernel without KernelSU"
echo "2: Build FireAsf kernel with KernelSU"
echo "3: Setup KernelSU Susfs (run before 2)"
2024-11-17 22:11:18 +01:00
echo "Type 'exit' to guess what? Exit, yeah exit!"
read -p "Make a good choice: " choice
case $choice in
1)
command_one
;;
2)
command_two
;;
3)
command_three
;;
2024-11-17 22:11:18 +01:00
exit)
echo "Exiting the program. Goodbye!"
break
;;
*)
echo "Invalid. Learn how to type."
;;
esac
done