save2flash on gtkdialog-splash
Code: Select all
#!/bin/bash
if grep -q "w_changes=RAM2" /proc/cmdline || grep -q "w_changes1=RAM2" /proc/cmdline; then
if [ "$(mount | grep /mnt/layers/uc_ro | grep rw)" ]; then
if [ "$DISPLAY" != "" ]; then
gtkdialog-splash -text "Saving Session . . ." -placement center -close never -align right -bg_gradient_sens strong -font 'DejaVu Serif' -fontsize 16 -fontstyle normal -fontweight bold -fg '#000000' -bg '#B5B37F' -icon "/usr/share/pixmaps/spinner.gif" -icon_width 0 -margin_width 10 -margin_height 10 -bg_gradient true -border true -wrap true -ontop true &
pd=$!
/usr/bin/snapmergepuppy
sleep 4
kill $pd
fi
else
yad --center --title="Save session" --text=" \n Cannot run save session on demand\n Directory <b>/mnt/layers/uc_ro</b> not connected " --width=480 --button="Close!gtk-close:0"
exit
fi
else
yad --center --title="Save session" --text=" \n Cannot run save session on demand\n Boot with option <b>w_changes=RAM2</b> or <b>w_changes1=RAM2</b> \n to make use of this feature " --width=480 --button="Close!gtk-close:0"
fi
------------------------------------
Code: Select all
#!/bin/bash
if grep -q "w_changes=RAM2" /proc/cmdline || grep -q "w_changes1=RAM2" /proc/cmdline; then
if [ "$(mount | grep /mnt/layers/uc_ro | grep rw)" ]; then
if [ "$DISPLAY" != "" ]; then
gtkdialog-splash -text "Saving Session . . ." -placement center -close never -align right -bg_gradient_sens medium -font 'DejaVu Serif' -fontsize 16 -fontstyle normal -fontweight bold -fg '#000000' -bg '#A3E7FF' -icon "/usr/share/pixmaps/spinner.gif" -icon_width 0 -margin_width 10 -margin_height 10 -bg_gradient true -border true -wrap true -ontop true &
pd=$!
/usr/bin/snapmergepuppy
sleep 4
kill $pd
fi
else
yad --center --title="Save session" --text=" \n Cannot run save session on demand\n Directory <b>/mnt/layers/uc_ro</b> not connected " --width=480 --button="Close!gtk-close:0"
exit
fi
else
yad --center --title="Save session" --text=" \n Cannot run save session on demand\n Boot with option <b>w_changes=RAM2</b> or <b>w_changes1=RAM2</b> \n to make use of this feature " --width=480 --button="Close!gtk-close:0"
fi