Skip to content

Instantly share code, notes, and snippets.

@oraccha
Created January 7, 2010 15:16
Show Gist options
  • Save oraccha/271283 to your computer and use it in GitHub Desktop.
Save oraccha/271283 to your computer and use it in GitHub Desktop.
#!/bin/rc
clonefile=/net/ether0/clone
<[4] $clonefile {
netdir=`{basename -d $clonefile} ^ / ^ `{cat /fd/4}
echo connect -1 >$netdir/ctl || exit 'cannot connect'
cat $netdir/data
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment