Репозитории ALT
S: | 1.44.0-alt2 |
5.1: | 0.7.3-alt2.git20101007.M51.1 |
4.1: | 0.7.1-alt5.M41.5 |
Группа :: Система/Настройка/Сеть
Пакет: NetworkManager
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and FR Repocop
#!/bin/sh -u
# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1
# Source function library.
. /etc/init.d/functions
. shell-config
# Source config.
SourceIfNotEmpty /etc/sysconfig/NetworkManager
IFDOWN=/sbin/ifdown
if is_yes "$NM_DOWN_CONTROLLED"; then
for i in /etc/net/ifaces/*; do
iface="${i##*/}"
case "$iface" in
default|unknown|lo) continue;;
esac
nm_controlled="$(shell_config_get "$i/options" NM_CONTROLLED)"
disabled="$(shell_config_get "$i/options" DISABLED)"
if [ -n "$nm_controlled" ] && is_yes "$nm_controlled"; then
if [ -z "$disabled" ] || is_no "$disabled"; then
[ -x "$IFDOWN" ] && action "Taking down $iface:" $IFDOWN "$iface"
fi
fi
done
fi
if [ -n "$NM_SYSCTL_CONF" ]; then
action "Setting network parameters:" sysctl -e -p "$NM_SYSCTL_CONF"
fi