#!/bin/sh # Allow uart to wake system up echo enabled > /sys/devices/platform/serial8250/tty\:ttyS0/power/wakeup # Suspend process /etc/init.d/S50plcpost stop /etc/init.d/S40network suspend /etc/init.d/S31fwwatchd stop /etc/init.d/S30plc stop echo mem > /sys/power/state /etc/init.d/S30plc start /etc/init.d/S31fwwatchd start /etc/init.d/S40network resume /etc/init.d/S50plcpost start