1#!/bin/sh
2
3old_unit=$1
4new_unit=$2
5
6if [ $old_unit != -1 ]; then
7	ifconfig sl$old_unit delete down
8	if [ $new_unit == -1 ]; then
9		route delete default
10	fi
11fi
12
13if [ $new_unit != -1 ]; then
14	ifconfig sl$new_unit <address1> <address2>
15	if [ $old_unit == -1 ]; then
16		route add default <address2>
17	fi
18fi
19