|
Lines 119-131
if [ ${1:-0} -gt 1 ]; then
Link Here
|
| 119 |
if [ ! -f etc/sysconfig/network/scripts/move_shm_sysconfig.sh ] ; then |
119 |
if [ ! -f etc/sysconfig/network/scripts/move_shm_sysconfig.sh ] ; then |
| 120 |
touch etc/sysconfig/network/__move_shm_sysconfig__ |
120 |
touch etc/sysconfig/network/__move_shm_sysconfig__ |
| 121 |
fi |
121 |
fi |
| 122 |
# set a mark when updating from NM_ONLINE_TIMEOUT=0 |
|
|
| 123 |
eval NM_ONLINE_TIMEOUT='' \ |
| 124 |
`grep -s '^[[:space:]]*NM_ONLINE_TIMEOUT=' \ |
| 125 |
var/adm/fillup-templates/sysconfig.config-network` |
| 126 |
if [ "x$NM_ONLINE_TIMEOUT" = "x0" ] ; then |
| 127 |
touch etc/sysconfig/network/__nm_online_timeout__ |
| 128 |
fi |
| 129 |
fi |
122 |
fi |
| 130 |
|
123 |
|
| 131 |
%post |
124 |
%post |
|
Lines 142-158
fi
Link Here
|
| 142 |
# |
135 |
# |
| 143 |
%{fillup_and_insserv -fY network} |
136 |
%{fillup_and_insserv -fY network} |
| 144 |
%{fillup_and_insserv -fY network-remotefs} |
137 |
%{fillup_and_insserv -fY network-remotefs} |
| 145 |
# remove first, we need the new default value |
|
|
| 146 |
sysconfig_remove_and_set network/dhcp DHCLIENT_TIMEOUT |
| 147 |
# remove first when NM_ONLINE_TIMEOUT was 0 in old template |
| 148 |
if [ -f etc/sysconfig/network/__nm_online_timeout__ ] ; then |
| 149 |
rm -f etc/sysconfig/network/__nm_online_timeout__ |
| 150 |
eval NM_ONLINE_TIMEOUT='' \ |
| 151 |
`grep -s '^[[:space:]]*NM_ONLINE_TIMEOUT=' \ |
| 152 |
etc/sysconfig/network/config` |
| 153 |
[ "x$NM_ONLINE_TIMEOUT" = "x0" ] && \ |
| 154 |
sysconfig_remove_and_set network/config NM_ONLINE_TIMEOUT |
| 155 |
fi |
| 156 |
%{fillup_only -dns dhcp network network} |
138 |
%{fillup_only -dns dhcp network network} |
| 157 |
%{fillup_only -dns config network network} |
139 |
%{fillup_only -dns config network network} |
| 158 |
/sbin/ldconfig |
140 |
/sbin/ldconfig |
| 159 |
- |
|
|