Welcome
|
FAQ
|
Downloads
|
Wiki
Tiny Core Linux
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Learn Tiny Core. View Tiny Core
Screen Shots and Videos
.
Home
Help
Login
Register
Tiny Core Linux
»
Tiny Core Base
»
TCB Bugs
»
Bug in exitcheck.sh?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Bug in exitcheck.sh? (Read 4060 times)
jur
Hero Member
Posts: 863
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?
Logged
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.
Logged
10+ Years Contributing to Linux Open Source Projects.
jur
Hero Member
Posts: 863
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?
Logged
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
Logged
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.
Logged
10+ Years Contributing to Linux Open Source Projects.
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?
Logged
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
Logged
10+ Years Contributing to Linux Open Source Projects.
jur
Hero Member
Posts: 863
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
»
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Tiny Core Linux
»
Tiny Core Base
»
TCB Bugs
»
Bug in exitcheck.sh?