WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Bug in exitcheck.sh?
« 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?

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Bug in exitcheck.sh?
« Reply #1 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.
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 27, 2009, 02:21:45 AM »
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, 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

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Bug in exitcheck.sh?
« Reply #4 on: December 27, 2009, 01:03:36 PM »
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, 02:34:46 PM »
roberts,
   Is there a recommended way to back up and shut down MicroCore without X?

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Bug in exitcheck.sh?
« Reply #6 on: December 27, 2009, 03: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, 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.
« Last Edit: December 27, 2009, 05:41:10 PM by jur »