View Single Post
MK99's Avatar
Posts: 644 | Thanked: 480 times | Joined on Jul 2012 @ Finland
#6750
Working auto-back1.sh

Code:
#!/bin/sh

while true
do
Display=$(/sbin/mcetool --status | grep Display | awk '{print $3}')
Call=$(/sbin/mcetool --status | grep Call | awk '{print $4}')
Dpkg=$(ps aux | grep dpkg | grep journal | cut -d '-' -f2)

if [ $Display == "off" ]
  then  
   if [ $Call == "none" ]
    then
     if [ $Dpkg ==  ]
      then
        bash /opt/N9QTweak/Autowall/auto-back2.sh >/dev/null
     fi
   fi
fi
sleep 200
done

Last edited by MK99; 2013-06-06 at 06:07.
 

The Following User Says Thank You to MK99 For This Useful Post: