#!/bin/sh

FOLDER="/mnt/base-us/weather"
FILE="weather.png"

cd $FOLDER

# Lock and Wake Up
/usr/bin/powerd_test -p >/dev/null

sleep 10

ifconfig wlan0 >/dev/null 2>&1
if [ $? -ne 0 ];then
    exit
fi

rm $FOLDER/$FILE
wget http://cn-vpn.grisge.info/weather/weather.png -O $FOLDER/$FILE

# Lock screen
/usr/bin/powerd_test -h >/dev/null

sleep 10

eips -f -g $FOLDER/$FILE

#!/bin/sh

FOLDER="/mnt/base-us/weather"
FILE="weather.png"

cd $FOLDER

# Wake Up
lipc-set-prop com.lab126.powerd wakeUp 1

sleep 10

ifconfig wlan0 >/dev/null 2>&1
if [ $? -ne 0 ];then
    exit
fi

rm $FOLDER/$FILE
wget http://cn-vpn.grisge.info/weather/weather.png -O $FOLDER/$FILE

# Lock screen
/usr/bin/powerd_test -p

sleep 10

eips -f -g $FOLDER/$FILE

Use better command for wakeup and lock
Use better command for wakeup and lock

Signed-off-by: Gris Ge <e24f3acbe39bf94f92e8af3c48f8852106ad5ad7@redhat.com>
