#!/bin/sh
# This script is called by ifup/down to load the network scheme specified by
# ifscheme.
if [ -z "$1" ] ; then
        prog=$(basename $0)
        echo "$prog: This script is a utility for ifscheme." >&2
        echo "$prog: See the ifscheme(1) man page for more information." >&2
        exit 1
else
        iface="$1"
        if [ ! -e /etc/network/scheme ]; then
                echo "$iface"
        else
                echo "$iface-$(cat /etc/network/scheme)"
        fi
fi
