#!/bin/sh # script /etc/firewall/iptables_start PATH=/sbin:/bin:/usr/sbin:/usr/bin IFACE_INT=eth0 IFACE_EXT=eth1 #IFACE_DMZ= IP_INT=`ifconfig $IFACE_INT | awk '/adr:/{print substr($2,5)}'` IP_EXT=`ifconfig $IFACE_EXT | awk '/adr:/{print substr($2,5)}'` #IP_DMZ=`ifconfig $IFACE_DMZ | awk '/adr:/{print substr($2,5)}'`
Forum Linux.général Script au demarrage
4
déc.
2006
Bonjour a tous
j'ai ca au debut d'un de mes script pour recuperé les ip des interfaces reseaux. ca marche bien en tant que root quant je fait /etc/init.d/firewall start mais ca ne marche pas lors du boot de la machine IP_INT et IP_EXT = ""
je m'arrache les cheveux
merci