[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: fonctionnement de /etc/network/if-pre-up.d/madwifi



thomas.harding@laposte.net (Thomas Harding) a écrit :

> en général, ce genre de script fait un '. /shemin/de/ma/configuration'
> en bach, un '.' isolé veut dire 'source', c'est à dire "éxécute dans le
> même shell"
Oui, ça, je sais.

> Cherche le point et tu trouveras :)
Si cela avait aussi simple, je n'aurais pas posté ;-)

Il n'y a pas de « point », comme tu dis :

#!/bin/sh
#
# Debian ifupdown hook script for madwifi-ng
#
# Author:   Matt Brown <matt@mattb.net.nz>
# Modified by: Kel Modderman <kelrin@tpg.com.au>
#
# Copyright (C) 2005 - 2006    Matt Brown
#
# This is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# This is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# On Debian GNU/Linux systems, the text of the GPL license can be found in
# /usr/share/common-licenses/GPL


WLANCONFIG=/sbin/wlanconfig

if [ ! -x "$WLANCONFIG" ]; then
        exit 0
fi

if [ ! -n "$IF_MADWIFI_BASE" ]; then
        exit 0
fi

De plus, si un fichier de conf était sourcé pour initialiser ces
variables, le mot clé IF_MADWIFI_BASE devrait apparaître dans un fichier
de /etc (j'entends et ses sous-répertoires). Or il n'y a rien de tel.

Les fichiers de /etc/network/if-* doivent bien être lancés par un script,
mais idem, je n'ai pas trouvé lequel, en cherchant comme mot-clé
if-pre-up dans /etc (et ses sous-répertoires aussi).

Il me manque donc quelquechose dans la compréhension du fonctionnement
des fichiers de /etc/network/if-*

Toutes suggestions bienvenues ;-)

-- 
Fred.



Reply to: