#!/bin/sh if [ "$reason" = "PREINIT" ]; then # on active l'interface ifconfig $interface up exit 0 fi if [ "$reason" = "BOUND" ]; then echo "Configuration de l'interface" #utiliser ici ifconfig echo "Activation d'une route par defaut via": $new_routers #utiliser ici route echo Initialisation du nom de la machine: $new_host_name hostname "$new_host_name" exit 0 fi echo Erreur de configuration de $interface exit 0