Commit 3be1873d authored by Geoffrey Gekiere's avatar Geoffrey Gekiere

correction erreur test sur variable persistence.conf

parent ef3d7de4
......@@ -2,12 +2,12 @@
PERSISTENCE=$(ls /lib/live/mount/persistence/sd* | grep persistence.conf)
if [ -e "$PERSISTENCE" ] && [ -e "$HOME/.config/openbox/menupersistence.xml" ]; then
if [ -n "$PERSISTENCE" ] && [ -e "$HOME/.config/openbox/menupersistence.xml" ]; then
mv $HOME/.config/openbox/menupersistence.xml $HOME/.config/openbox/menu.xml
mv $HOME/.config/openbox/menupersistence2.xml $HOME/.config/openbox/menu2.xml
sed -i '/menupersistence/d' .config/openbox/autostart.sh
openbox --restart
elif [ ! -e "$PERSISTENCE" ] && [ ! -e "$HOME/.config/openbox/menupersistence.xml" ]; then
elif [ -z "$PERSISTENCE" ] && [ ! -e "$HOME/.config/openbox/menupersistence.xml" ]; then
zenity --info --title="Bienvenue sur Studiobox3" --text="Bienvenue sur le système d'exploitation Studiobox3.
Pour mémoire:
- votre nom d'utilisateur est 'studiobox'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment