<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Wake on LAN</title> <atom:link href="http://marcin.juszkiewicz.com.pl/2005/06/16/wake-on-lan-2/feed/" rel="self" type="application/rss+xml" /><link>http://marcin.juszkiewicz.com.pl/2005/06/16/wake-on-lan-2/</link> <description>Embedded Linux development</description> <lastBuildDate>Tue, 31 Jan 2012 13:33:03 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Hrw</title><link>http://marcin.juszkiewicz.com.pl/2005/06/16/wake-on-lan-2/#comment-131</link> <dc:creator>Hrw</dc:creator> <pubDate>Tue, 13 Sep 2005 06:32:39 +0000</pubDate> <guid
isPermaLink="false">http://www.hrw.one.pl/index.php/2005/06/16/wake-on-lan-2/#comment-131</guid> <description>&lt;p&gt;G: I never tried to wake my desktop from Zaurus - they are not in the same network.&lt;/p&gt;&lt;p&gt;If I use USB networking then desktop must be ON to be able to connect with Zaurus.&lt;/p&gt;&lt;p&gt;If I use WiFi card then all packets goes through my router/WAP.&lt;/p&gt;&lt;p&gt;I don&#039;t have Ethernet card for Zaurus to be able to wake machine from Z.&lt;/p&gt; </description> <content:encoded><![CDATA[<p>G: I never tried to wake my desktop from Zaurus &#8211; they are not in the same network.</p><p>If I use USB networking then desktop must be ON to be able to connect with Zaurus.</p><p>If I use WiFi card then all packets goes through my router/WAP.</p><p>I don&#8217;t have Ethernet card for Zaurus to be able to wake machine from Z.</p>]]></content:encoded> </item> <item><title>By: G</title><link>http://marcin.juszkiewicz.com.pl/2005/06/16/wake-on-lan-2/#comment-130</link> <dc:creator>G</dc:creator> <pubDate>Tue, 13 Sep 2005 05:19:12 +0000</pubDate> <guid
isPermaLink="false">http://www.hrw.one.pl/index.php/2005/06/16/wake-on-lan-2/#comment-130</guid> <description>&lt;p&gt;Did you ever find a way to send a Wake on LAN from the Zaurus to your home computer?&lt;/p&gt;&lt;p&gt;Closest I&#039;ve gotten is this shell script, but it needs arp or a nc with udp broadcast:&lt;/p&gt;&lt;pre&gt;
#! /bin/sh# Usage: wake  []
#
#  can be a host name or a dotted-quad IP address.
# If the  is not given, it is taken from ethers(5).
# For this to work, if you give a host name as first argument, ethers
# has to contain host names (as opposed to IP addresses).
#
# Unless you have it already, you can build your ethers file like this:
#
# nmap -sP -PI 192.168.1.0/24   # prepare ARP cache with a ping-sweep
# arp -a &#124; awk &#039;$5 == &quot;[ether]&quot; { printf(&quot;%st%sn&quot;, $4, $1); }&#039;
#        &#124; sort &gt;&gt;/etc/ethers
#
# The &#039;magic packet&#039; consists of 6 times 0xFF followed by 16 times
# the hardware address of the NIC. This sequence can be encapsulated
# in any kind of packet; I chose UDP to the discard port (9).if [ $# = 1 ]; then
ETHER=`awk &quot;/$1/&quot;&#039; { gsub(&quot;:&quot;, &quot;&quot;, $1); print $1; exit; }&#039;/etc/ethers`
if [ -z $ETHER ]; then
echo &quot;$0: host $1 is not in /etc/ethers&quot; &gt;&amp;2
exit 1
fi
else
ETHER=$2
fiETHER=&quot;${ETHER}${ETHER}${ETHER}${ETHER}&quot;                # 4 x MAC
ETHER=&quot;FFFFFFFFFFFF${ETHER}${ETHER}${ETHER}${ETHER}&quot;    # Preamble + 16 x MACa### doesn&#039;t work on OZ because nc, arp suck... :(
## probably has syntax errors too, haven&#039;t checked on real linux yet.## Inject into ARP table
arp -s 192.168.0.1 `awk &quot;/$1/&quot;&#039; { gsub(&quot;:&quot;, &quot;&quot;, $1); print $1; exit; }&#039;/etc/ethers`## netcat to start machine
echo ${ETHER} &#124; nc -b -u -p 7
&lt;/pre&gt; </description> <content:encoded><![CDATA[<p>Did you ever find a way to send a Wake on LAN from the Zaurus to your home computer?</p><p>Closest I&#8217;ve gotten is this shell script, but it needs arp or a nc with udp broadcast:</p><pre>
#! /bin/sh

# Usage: wake  []
#
#  can be a host name or a dotted-quad IP address.
# If the  is not given, it is taken from ethers(5).
# For this to work, if you give a host name as first argument, ethers
# has to contain host names (as opposed to IP addresses).
#
# Unless you have it already, you can build your ethers file like this:
#
# nmap -sP -PI 192.168.1.0/24   # prepare ARP cache with a ping-sweep
# arp -a | awk '$5 == "[ether]" { printf("%st%sn", $4, $1); }' 
#        | sort &gt;&gt;/etc/ethers
#
# The 'magic packet' consists of 6 times 0xFF followed by 16 times
# the hardware address of the NIC. This sequence can be encapsulated
# in any kind of packet; I chose UDP to the discard port (9).

if [ $# = 1 ]; then
  ETHER=`awk "/$1/"' { gsub(":", "", $1); print $1; exit; }'/etc/ethers`
  if [ -z $ETHER ]; then
    echo "$0: host $1 is not in /etc/ethers" &gt;&amp;2
    exit 1
  fi
else
  ETHER=$2
fi

ETHER="${ETHER}${ETHER}${ETHER}${ETHER}"                # 4 x MAC
ETHER="FFFFFFFFFFFF${ETHER}${ETHER}${ETHER}${ETHER}"    # Preamble + 16 x MACa

### doesn't work on OZ because nc, arp suck... :(
## probably has syntax errors too, haven't checked on real linux yet.

## Inject into ARP table
arp -s 192.168.0.1 `awk "/$1/"' { gsub(":", "", $1); print $1; exit; }'/etc/ethers`

## netcat to start machine
echo ${ETHER} | nc -b -u -p 7
</pre>]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic
Database Caching using disk: basic
Object Caching 271/299 objects using disk: basic

Served from: marcin.juszkiewicz.com.pl @ 2012-02-09 08:49:12 -->
