wakepup2 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/sh
  2. #2007 Lesser GPL licence v2 (http://www.fsf.org/licensing/licenses/lgpl.html)
  3. #120202 rodin.s: internationalized.
  4. export TEXTDOMAIN=wakepup2
  5. export TEXTDOMAINDIR=/usr/share/locale
  6. export OUTPUT_CHARSET=UTF-8
  7. eval_gettext () {
  8. local myMESSAGE=$(gettext "$1")
  9. eval echo \"$myMESSAGE\"
  10. }
  11. export LANGORG=$LANG
  12. export DLGBOX="
  13. <window title=\"WakePup2\">
  14. <vbox>
  15. <text><label>$(gettext 'Welcome! This little program will create a boot floppy disk, for booting puppy. WakePup2 is a floppy disk that will search for Puppy on USB, CD/DVD or hard drive and if found will boot puppy. A limitation is that Puppy must be installed in a FAT or NTFS partition on the USB or hard drive.')</label></text>
  16. <text><label>`gettext \"Why use WakePup2? The most common reason is you have used the Puppy Universal Installer (see 'Setup' menu) to install Puppy to a USB Flash 'key' drive, but the PC refuses to boot from it. Or, you have a PC that has a CD drive but refuses to boot from it. This is a solution for such cantankerous PCs, but of course is not applicable if you have a modern sans-floppy-drive PC.\"`</label></text>
  17. <text><label>`gettext \"Note, if you need to boot Puppy installed in a Linux partition (ext2, ext3, reiserfs, or minix), it is possible to create a GRUB boot floppy and this can be done when the 'Puppy Universal Installer' (in 'Setup' menu) is executed, or by selecting 'GRUB bootloader config' from the 'Control Panel' menu.\"`</label></text>
  18. <text><label>\" \"</label></text>
  19. <text><label>$(gettext 'WAKEPUP2 CURRENTLY NOT AVAILABLE')</label></text>
  20. <text><label>`gettext \"You need to first install the WakePup2 PET package -- just click the 'install' button on the desktop (Internet access required). Note, the WakePup developer guys have come up with different WakePup's that may perform better on certain hardware -- see the main Puppy Forum\"`</label></text>
  21. <text><label>`gettext \"CLICK 'Cancel' button for now, then install WakePup2...\"`</label></text>
  22. <hbox>
  23. <button cancel></button>
  24. </hbox>
  25. </vbox>
  26. </window>
  27. "
  28. #echo "$DLGBOX" | gtkdialog2 --stdin
  29. gtkdialog3 --program=DLGBOX &
  30. WPPID=$!
  31. sleep 120
  32. kill $WPPID
  33. ###END###