Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: jur on December 27, 2009, 12:36:21 AM

Title: Bug in exitcheck.sh?
Post by: jur on December 27, 2009, 12:36:21 AM
I programmed some of my buttons to do shutdown and reboot, and call exitcheck.sh shutdown/reboot from the button scripts. But I don't see that backup is happening; that only happens if I use the graphical exittc routine.

Shouldn't backup be performed when BACKUP=1 and exitcheck.sh is called?
Title: Re: Bug in exitcheck.sh?
Post by: roberts on December 27, 2009, 12:45:12 AM
Simply unchecking the box in the GUI does not affect the environment BACKUP status.
Instead exittc, the GUI, comminicates via a flag, /tmp/do_backup, to exitcheck to perform the backup.
Title: Re: Bug in exitcheck.sh?
Post by: jur on December 27, 2009, 02:21:45 AM
You skirted my question...

Shouldn't backup be performed when calling exitcheck.sh while BACKUP=1?
Title: Re: Bug in exitcheck.sh?
Post by: Kingdomcome on December 27, 2009, 08:40:21 AM
I to was surprised to find that exitcheck.sh does not automatically backup. the solution is simple enough though.
Code: [Select]
touch /tmp/do_backup && exitcheck.sh
Title: Re: Bug in exitcheck.sh?
Post by: roberts on December 27, 2009, 01:03:36 PM
exitcheck.sh was not intended to be called from other than exittc.
Title: Re: Bug in exitcheck.sh?
Post by: Kingdomcome on December 27, 2009, 02:34:46 PM
roberts,
   Is there a recommended way to back up and shut down MicroCore without X?
Title: Re: Bug in exitcheck.sh?
Post by: roberts on December 27, 2009, 03:00:33 PM
filetool.sh backup

- or -

filetool.sh backup noprompt

Title: Re: Bug in exitcheck.sh?
Post by: jur on December 27, 2009, 04:51:18 PM
What is tc-functions for, which gets called at the start of exitcheck? Is it necessary to include this?

If not exitcheck, what do you call on shutting down with a hotkey? filetool.sh does not call shutdown.sh. I think perhaps it should be exitcheck.sh? All the necessary code is there except for the backup issue.