#!/bin/sh set -e SUGAR_CONFIG=/home/olpc/.sugar/default/config ID=1 if test -f ${SUGAR_CONFIG}; then ID=`grep nickname ${SUGAR_CONFIG} | cut -f2 -d-` if test -z "${ID}"; then ID=1 fi fi IP=10.1.1.${ID}/24 iwconfig eth0 mode ad-hoc essid mesh iwconfig msh0 channel 6 ifconfig msh0 ${IP} echo "mesh-up: this node IP address is ${IP}"