#!/bin/sh wifi=${WIFI:-urtwn0} (id; pwd) > /tmp/resume.id upscript=/etc/apm/wifi-reconn.sh (trial=3 while [ $trial -gt 0 ]; do if $upscript; then break else sleep 3 trial=$((trial-1)) fi done ) # > /tmp/urt-up.log 2>&1