Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: hca on August 13, 2011, 10:16:29 AM
-
with TC running headless, what is the correct way to initiate a normal persistent shutdown as the gui shutdown would from the command line and or via ssh?
By headless I really mean, normal boot with X sever up but no local screen or kyb/mouse.
exittc as called by the window manager causes a seg fault from command line, I saw a post from may about this sort of thing referring to micro core, but it did not seem to help.
Normally the standard nix shutdown is fine, but not if i have changed a config i want persistent for the next reboot.
Reg HC
-
/usr/bin/exitcheck.sh
-
What exittc does is do a backup if the box is ticked, and then call exitcheck.sh $action.
From a cli a backup and poweroff would be:
filetool.sh -b
exitcheck.sh shutdown
-
Ok thanks folks,
I tried the filetool.sh before but with backup rather than -b.
Thus I have 2 new scripts below for any one who might need.
This Tiny core makes old HP5530 thin clients into rather useful devices, beats the daylights out of WRT54's and sd cards!
reg HCA.
1- power-down
#!/bin/sh
filetool.sh -b
exitcheck.sh shutdown
exit
and 2- power-cycle
filetool.sh -b
exitcheck.sh reboot
exit