Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 206815 | Differences between
and this patch

Collapse All | Expand All

(-)scriptlets.d.old/network (-10 / +4 lines)
Lines 29-41 Link Here
29
	    # Don't bring down lo in auto mode.
29
	    # Don't bring down lo in auto mode.
30
	    [ "$int" = "lo" ] && continue
30
	    [ "$int" = "lo" ] && continue
31
	fi
31
	fi
32
    # Only bring down interfaces that are actually up.
32
	vecho 2 "Bringing down interface $int"
33
    if network_if_is_up $int ; then
33
	network_ifdown $int
34
        vecho 2 "Bringing down interface $int"
34
	[ $? -ne 0 ] && ret=1
35
        network_ifdown $int
35
	NETWORK_DOWNEDIFS="$int $NETWORK_DOWNEDIFS"
36
        [ $? -ne 0 ] && ret=1
37
        NETWORK_DOWNEDIFS="$int $NETWORK_DOWNEDIFS"
38
    fi
39
    done
36
    done
40
    return $ret
37
    return $ret
41
}
38
}
Lines 100-108 Link Here
100
	    network_ifdown() {
97
	    network_ifdown() {
101
	    	[ -x "/etc/init.d/net.$1" ] && /etc/init.d/net.$1 stop
98
	    	[ -x "/etc/init.d/net.$1" ] && /etc/init.d/net.$1 stop
102
	    }
99
	    }
103
        network_if_is_up() {
104
            [ -x "/etc/init.d/net.$1" ] && return `/etc/init.d/net.$1 --quiet status`
105
        }
106
	    ;;
100
	    ;;
107
	suse)
101
	suse)
108
	    network_ifup() {
102
	    network_ifup() {
(-)scriptlets.d.old/xstatus (-4 / +1 lines)
Lines 15-23 Link Here
15
### KDE bits:
15
### KDE bits:
16
16
17
XStatusProgressStart_kde() {
17
XStatusProgressStart_kde() {
18
    # Check if KDE is running.
19
    [ -z `pidof -s kdesktop` ] && return 1
20
21
    KDEPB_DCOPREF=
18
    KDEPB_DCOPREF=
22
19
23
    # Set $PATH for distros that aren't quite standard.
20
    # Set $PATH for distros that aren't quite standard.
Lines 36-42 Link Here
36
	return 0
33
	return 0
37
    fi
34
    fi
38
35
39
    KDEPB_DCOPREF="`su $XUSER -c \"$KSTART_BIN --windowclass KDialog --alldesktops $KDIALOG_BIN --title Hibernating --icon kmenu --progressbar \\\"$1\\\" 100\"`"
36
    KDEPB_DCOPREF="`su $XUSER -c \"$KSTART_BIN --windowclass KDialog --alldesktops $KDIALOG_BIN --title Hibernating --progressbar \\\"$1\\\" 100\"`"
40
    su $XUSER -c "$DCOP_BIN \"$KDEPB_DCOPREF\" showCancelButton 1"
37
    su $XUSER -c "$DCOP_BIN \"$KDEPB_DCOPREF\" showCancelButton 1"
41
}
38
}
42
39

Return to bug 206815