Page 1 of 1

Re: Wake ON Lan for UN46D6000

Posted: Thu Feb 09, 2012 5:32 am
by juusso
What you get on console of start script manually? Or over web GUI?

Re: Wake ON Lan for UN46D6000

Posted: Thu Feb 09, 2012 9:51 am
by juusso
I think if you read howto, you saw this.

By presing "start" next to the sctipt name, you get some debug info and possible error.

Scripts are to be started over consolle too.
Connect to TV and put:

Code: Select all

/mtd_rwcommon/widgets/user/SamyGO/SamyGO/etc/init.d/02_10_wakelan.init start

Re: Wake ON Lan for UN46D6000

Posted: Thu Feb 09, 2012 3:49 pm
by arris69
kumar106 wrote:Thanks juuso,

when I am starting the script through web shell and web gui got the below

/mtd_down/widgets/user/SamyGO/SamyGO/etc/init.d/02_10_wakelan.init:

Code: Select all

 line 1: #!/bin/sh: not found
starting from web gui:

Code: Select all

+ ?#!/bin/sh
/mtd_down/widgets/user/SamyGO/SamyGO/etc/init.d/02_10_wakelan.init: line 1: ?#!/bin/sh: not found
looks like you succesful damaged the init script, btw. not so critical
kumar106 wrote:

Code: Select all

.....
+ export FRAMEBUFFER=/dev/sam/fb0
+ export DISTROOT=/mtd_down/widgets/user/SamyGO/SamyGO/opt/privateer
+ MACA=001A6B4E4824
+ WAT=30
+ [ -e /mtd_rwarea/wakelan_data ]
+ [ 001A6B4E4824 == 001A6B4E4824 ]
+ exit 1
why you change the script outside of

Code: Select all

CHANGE MEEEEE !!!!!
section?

script should looks like:

Code: Select all

#!/bin/sh
#
# ? Copyright 1996-2009, ZsoltTech.Com
#       by Ser Lev Arris <arris@ZsoltTech.Com>
#
#       donated for the SamyGo Project
#       http://samygo.sourceforge.net/
#
#       Version: $Id: 02_10_wakelan.init.dis 797 2010-07-27 15:41:59Z arris $
#
# TODO: more sysv style, more error handling
#
. /dtv/SGO.env

##### CHANGE MEEEEE !!!!! ######
MACA="001A6B4E4824"
WAT=30          # Wait, in Seconds
##### CHANGE MEEEEE END ######

[ -e /mtd_rwarea/wakelan_data ] && source /mtd_rwarea/wakelan_data

[ "$MACA" == "001122334455" ] && exit 1

DEAD=""

check_hosts()
{
        for i in $MACA ; do
                if [ `cat /proc/net/arp | grep -c -i "$i"` -lt "1" ] ; then
                        wakelan -m $i
                else
                        echo "$i is may alive"
                fi
        done
}

do_sleep()
{
        for i in $MACA ; do
                if [ `cat /proc/net/arp | grep -c -i "$i"` -lt "1" ] ; then
                        DEAD=$DEAD"$i"
                fi
        done
        if [ ! -z $DEAD ] ; then
                sleep $WAT
        fi
}

case $1 in
        start)
        check_hosts
        do_sleep
        ;;
        stop)
        ;;
        status)
        ;;
        *)
        echo "Usage: $0 {start|stop}" 1>&2
        exit 0
        ;;
esac

Re: Wake ON Lan for UN46D6000

Posted: Thu Feb 09, 2012 5:37 pm
by juusso
Chmod it to 755 (script and binary).
Sure, over console

Re: Wake ON Lan for UN46D6000

Posted: Sat Feb 18, 2012 1:23 am
by jarod73
Hi guys, this is the output in my ue40d7000 test.cgi

Code: Select all

+ export ENV=/dtv/.ashrc
+ export FRAMEBUFFER=/dev/sam/fb0
+ export DISTROOT=/mtd_down/widgets/user/SamyGO/SamyGO/opt/privateer
+ MACA=984BE1077EEA
+ WAT=30
+ [ -e /mtd_rwarea/wakelan_data ]
+ [ 984BE1077EEA== 001122334455 ]
+ DEAD=
+ check_hosts
+ cat /proc/net/arp
+ grep -c -i 984BE1077EEA
+ [ 0 -lt 1 ]
+ wakelan -m 984BE1077EEA
+ do_sleep
+ cat /proc/net/arp
+ grep -c -i 984BE1077EEA
+ [ 0 -lt 1 ]
+ DEAD=984BE1077EEA
+ [ ! -z 984BE1077EEA ]
+ sleep 30
my nas wakes up only on splash screen loading, I've tried to raise the delay from 30 seconds up to 70 but it always wait splash screen to wake up.
I've also tried to put a sleep 70 in nfs mounting script ( gives network interference ant won't load samygo) before mount but I cant get nas up ( it boots in 45 sec ) before mounting script are executed.
I don't understand where I'm wrong. :cry:

solved.. ethernet-wol g needed on my little ubuntu 10.04 server