This is for booting puppy from USB, until further tests are carried out not sure what effect it will have on other methods of running puppy.
If you don't want to save when you power down or reboot your system use the following.
I really hope I've made this simple enough for even beginners like me to understand what and how to do it.
Works for Puppy 5.2 and 5.2.5 (probably works for other versions but haven't test it)
POWEROFF
Navigate to a folder of your choice (I used "my-applications")
Create a new script (right click in blank space in folder, select New >> Script, name it poweroff)
Right click on your poweroff script >>> open as text
Copy and paste the following into it:
Code: Select all
#!/bin/sh
# skips rc.shutdown and powers off computer without saving the session.
Xdialog --title "script $0" --yesno "\n\nAre you sure to power-off computer WITHOUT saving?\n\n" 0 0
[ $? -eq 0 ] && exec /bin/busybox poweroff
Right click poweroff file >>> Set Icon, get a suitable Icon for it.
Drag it to your desktop to create a link to it.
REBOOT
Follow same steps as above except call the file reboot, and copy the following into the reboot script instead.
Code: Select all
#!/bin/sh
# skips rc.shutdown and reboots computer without saving the session.
Xdialog --title "script $0" --yesno "\n\nAre you sure to reboot computer WITHOUT saving?\n\n" 0 0
[ $? -eq 0 ] && exec /bin/busybox reboot
Click the SAVE bullseye now or you will lose the file/s you just made.
CREDITS
Thanks to MochiMoppel for the scripts. They were found at the end of a second page so I thought I would post them as a HOWTO so they should be found a lot easier.