Re: Cron jobs
Posted: 11 Sep 2013, 16:17
nope. you should replace kiosk's /boot/vmlinuz with /boot/syslinux/vmlinuz from standard editionIn my Kiosk iso the /boot/syslinux dir is not exist, so I made it with chmod +x .
nope. you should replace kiosk's /boot/vmlinuz with /boot/syslinux/vmlinuz from standard editionIn my Kiosk iso the /boot/syslinux dir is not exist, so I made it with chmod +x .
Code: Select all
#!/bin/sh
(
min=$(echo $((59-`date +%M`)))
hr=$(echo $(echo $((15-`date +%H`)))*60)
mins_total=$(echo $(($min+$hr)))
sleep "$mins_total"m 2>/dev/null && poweroff || exit
) &
we are not moving with features planned for next kiosk version (printing support and web version of the wizard) at all so this may be a long wait...I wait while you create the new version with this funkcion.
Code: Select all
echo $(date +%s -d "+ 2 minutes") > /sys/class/rtc/rtc0/wakealarm
echo mem >/sys/power/state
Code: Select all
echo $(date +%s -d "+ 2 minutes") > /sys/class/rtc/rtc0/wakealarm
Code: Select all
echo mem >/sys/power/state
Code: Select all
cat /sys/power/state
Code: Select all
echo $(date +%s) > /sys/class/rtc/rtc0/wakealarm
cat /sys/class/rtc/rtc0/wakealarm
Code: Select all
echo mem >/sys/power/state
Code: Select all
echo freeze >/sys/power/state
Code: Select all
date: invalid date ' +2 minutes '
Code: Select all
echo `/opt/porteus-scripts/date '+%s' -d "+ 15 hours"` > /sys/class/rtc/rtc0/wakealarm
Code: Select all
echo $(date +%s -d "+ 2 minutes") > /sys/class/rtc/rtc0/wakealarm
echo mem >/sys/power/state
Yes, I have, and I try it, it work's!do you have 'mem' listed when you boot porteus standard edition on this PC?
Code: Select all
cat /sys/power/state
freeze standby mem disk