Skip to content

Instantly share code, notes, and snippets.

View torkildr's full-sized avatar

Torkild Retvedt torkildr

View GitHub Profile
#!/bin/sh
# Place it in /jffs/etc/config/altibox-6rd.wanup, and then ln -s /jffs/etc/config/altibox-6rd.ipup to it.
# This script is inredible untested, and is currently used mostly as notes...
# The Altibox 6rd gateway.
REMOTE=213.167.115.92
# Your local IP address.
LOCAL="$(ifconfig eth1 | sed -n '/inet /{s/.*addr://;s/ .*//;p}')"
LOCAL_HEX=$(printf '%02X%02X%02X%02X' $(echo $LOCAL | tr '.' ' ') | awk '{print substr($1,1,