[Musix-users] Wouhou ! Solution for network problem (Problems with 0.49) (seq2)

julien bodd julien.lociuro at gmail.com
Fri Jun 30 22:03:12 CEST 2006


For info, the solution I adopted for now is modifying the
/etc/init.d/networking script as so (i just give the changes in comments) :

case "$1" in
start)
        process_options
        log_action_begin_msg "Configuring network interfaces"
        ###### JULIEN'S ADD (ifdown -a) #####
        ifdown -a
        if ifup -a; then
            log_action_end_msg $?
        else
            log_action_end_msg $?
        fi
        ;;

stop)
        if sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\2/p' /proc/mounts |
                grep -qE '^(nfs[1234]?|smbfs|ncp|ncpfs|coda|cifs)$'; then
            log_warning_msg "not deconfiguring network interfaces: network
shares still mounted."
            exit 0
        fi

        log_action_begin_msg "Deconfiguring network interfaces"
        ##### JULIEN'S REMOVE --exclude=lo #####
#       if ifdown -a --exclude=lo; then
        if ifdown -a; then
            log_action_end_msg $?
        else
            log_action_end_msg $?
        fi
        ;;

force-reload|restart)
        process_options
        log_action_begin_msg "Reconfiguring network interfaces"
        #### JULIEN'S REMOVE --exclude=lo ####
#       ifdown -a --exclude=lo || true
        ifdown -a || true
        if ifup -a --exclude=lo; then
            log_action_end_msg $?
        else
            log_action_end_msg $?
        fi
        ;;

That's it ! now all works fine !

Thank you very much Marco. Anyway, with all that carajo things I learned new
things about linux..

++
Julien.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/musix-users/attachments/20060630/8be4dd4e/attachment.htm


More information about the Musix-users mailing list