Bug 4147

Summary: неверные скрипты
Product: Sisyphus Reporter: inger <inger>
Component: net-scriptsAssignee: Denis Ovsienko <pilot>
Status: CLOSED NOTABUG QA Contact: qa-sisyphus
Severity: minor    
Priority: P2    
Version: unstable   
Hardware: all   
OS: Linux   

Description inger@altlinux.org 2004-05-13 13:23:37 MSD
if [ $1 -ge 2 ]; then 
        /usr/sbin/control-dump usernetctl 
fi 
postinstall scriptlet (through /bin/sh): 
if [ $1 -ge 2 ]; then 
        /usr/sbin/control-restore usernetctl 
else 
        /sbin/chkconfig --add network 
        /sbin/chkconfig --add netfs 
fi 
preuninstall scriptlet (through /bin/sh): 
if [ $1 -eq 0 ]; then 
        /sbin/chkconfig --del netfs 
        /sbin/chkconfig --del network 
 
не используются стандартные макросы %post/%preun_service
Comment 1 Denis Ovsienko 2004-05-16 17:56:35 MSD
Я тут почитал и мне кажется, что по-другому нельзя. Вот это из
/usr/sbin/post_service:
/sbin/service "$1" condrestart ||:
При таких обстоятельствах можно будет обновлять net-scripts только с физической
консоли. Стоит ли только для порядка заводить пустой condrestart/condstop?
Comment 2 inger@altlinux.org 2004-05-24 13:45:09 MSD
ну тогда оставим