Tiny Core Base > TCB Talk

exittc with suspend support

<< < (3/3)

Roberto A. Foglietta:

--- Quote from: jpeters on April 09, 2009, 11:51:26 PM ---
--- Quote from: ^thehatsrule^ on April 09, 2009, 11:14:12 PM ---Your redirect does not have root privs (ie use a root session)

--- End quote ---

Yes...you can place the suspend script in /root and run it from there.  (eg, sudo /root/suspend )


--- End quote ---

Thanks both, I prefer to change exitcheck.sh in that way:


--- Code: ---  suspend )     
    if ! sudo s2ram $SUSPEND_OPTS; then
       sudo sh -c 'echo -n "mem"  > /sys/power/state'
    fi                                               
  ;;     

--- End code ---

I have updated coherently this tarball

http://www.roberto.foglietta.name/pub/tinycore/exittc.tgz

Navigation

[0] Message Index

[*] Previous page

Go to full version