Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37859740
en ru br
Репозитории ALT
S:0.4.2-alt1
5.1: 0.2-alt1
www.altlinux.org/Changes

Группа :: Система/Настройка/Прочее
Пакет: livecd-save-nfs

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

livecd-save-nfs/000075500000000000000000000000001121222746700140465ustar00rootroot00000000000000livecd-save-nfs/livecd-save-nfs000075500000000000000000000012511121222746700167610ustar00rootroot00000000000000#!/bin/sh
#
#
# chkconfig: 6 04 05
# description: This startup script disables NetworkManager on already up ifaces

WITHOUT_RC_COMPAT=1


# Source function library.
. /etc/init.d/functions

RETVAL=0

start()
{
if ip -o a | grep -q 'eth.*UP' ; then
iface=$(ip -o a | grep 'eth.*UP' | cut -f 2 -d' ' | tr -d ':')
mkdir -p /etc/net/ifaces/$iface
echo 'NM_CONTROLLED=no' >> /etc/net/ifaces/$iface/options
echo 'BOOTPROTO=dhcp' >> /etc/net/ifaces/$iface/options
fi
true
}

stop()
{
true
}

restart()
{
stop
start
}

# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
*)
msg_usage "${0##*/} {start|stop}"
RETVAL=1
esac

exit $RETVAL
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin