2023-07-01 16:11:54 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
2024-02-20 22:47:27 +01:00
|
|
|
WHO=$(whoami)
|
|
|
|
if [[ $WHO == "pikaos" ]]; then
|
|
|
|
zenity --info --text ""$1" has been processed successfully."
|
|
|
|
else
|
2023-08-14 14:47:31 +02:00
|
|
|
if echo $1 | grep -i mesa
|
2023-07-01 16:11:54 +02:00
|
|
|
then
|
2024-02-20 22:47:27 +01:00
|
|
|
zenity --info --text ""$1" has been processed successfully."
|
2023-08-14 14:47:31 +02:00
|
|
|
else
|
|
|
|
if zenity --question --text ""$1" has been processed successfully. Would you like to reboot for changes to take effect?"
|
|
|
|
then
|
|
|
|
systemctl reboot
|
|
|
|
fi
|
2023-07-01 16:11:54 +02:00
|
|
|
fi
|
2024-02-20 22:47:27 +01:00
|
|
|
fi
|