WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Bug in exitcheck.sh?  (Read 3614 times)

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Bug in exitcheck.sh?
« on: December 26, 2009, 09:36:21 PM »
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?

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Bug in exitcheck.sh?
« Reply #1 on: December 26, 2009, 09:45:12 PM »
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.
10+ Years Contributing to Linux Open Source Projects.

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: Bug in exitcheck.sh?
« Reply #2 on: December 26, 2009, 11:21:45 PM »
You skirted my question...

Shouldn't backup be performed when calling exitcheck.sh while BACKUP=1?

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: Bug in exitcheck.sh?
« Reply #3 on: December 27, 2009, 05: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

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Bug in exitcheck.sh?
« Reply #4 on: December 27, 2009, 10:03:36 AM »
exitcheck.sh was not intended to be called from other than exittc.
10+ Years Contributing to Linux Open Source Projects.

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: Bug in exitcheck.sh?
« Reply #5 on: December 27, 2009, 11:34:46 AM »
roberts,
   Is there a recommended way to back up and shut down MicroCore without X?

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Bug in exitcheck.sh?
« Reply #6 on: December 27, 2009, 12:00:33 PM »
filetool.sh backup

- or -

filetool.sh backup noprompt

10+ Years Contributing to Linux Open Source Projects.

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: Bug in exitcheck.sh?
« Reply #7 on: December 27, 2009, 01: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.
« Last Edit: December 27, 2009, 02:41:10 PM by jur »