|
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 |
122 |
# remember previous NM_ONLINE_TIMEOUT setting |
| 123 |
eval NM_ONLINE_TIMEOUT='' \ |
123 |
eval NM_ONLINE_TIMEOUT='' \ |
| 124 |
`grep -s '^[[:space:]]*NM_ONLINE_TIMEOUT=' \ |
124 |
`grep -s '^[[:space:]]*NM_ONLINE_TIMEOUT=' \ |
| 125 |
var/adm/fillup-templates/sysconfig.config-network` |
125 |
var/adm/fillup-templates/sysconfig.config-network` |
| 126 |
if [ "x$NM_ONLINE_TIMEOUT" = "x0" ] ; then |
126 |
echo "OLD_NM_ONLINE_TIMEOUT=$NM_ONLINE_TIMEOUT" \ |
| 127 |
touch etc/sysconfig/network/__nm_online_timeout__ |
127 |
> etc/sysconfig/network/__nm_online_timeout__ |
| 128 |
fi |
|
|
| 129 |
fi |
128 |
fi |
| 130 |
|
129 |
|
| 131 |
%post |
130 |
%post |
|
Lines 144-156
fi
Link Here
|
| 144 |
%{fillup_and_insserv -fY network-remotefs} |
143 |
%{fillup_and_insserv -fY network-remotefs} |
| 145 |
# remove first, we need the new default value |
144 |
# remove first, we need the new default value |
| 146 |
sysconfig_remove_and_set network/dhcp DHCLIENT_TIMEOUT |
145 |
sysconfig_remove_and_set network/dhcp DHCLIENT_TIMEOUT |
| 147 |
# remove first when NM_ONLINE_TIMEOUT was 0 in old template |
146 |
# remove NM_ONLINE_TIMEOUT when it is set to old default |
| 148 |
if [ -f etc/sysconfig/network/__nm_online_timeout__ ] ; then |
147 |
if [ -f etc/sysconfig/network/__nm_online_timeout__ ] ; then |
|
|
148 |
. etc/sysconfig/network/__nm_online_timeout__ |
| 149 |
rm -f etc/sysconfig/network/__nm_online_timeout__ |
149 |
rm -f etc/sysconfig/network/__nm_online_timeout__ |
| 150 |
eval NM_ONLINE_TIMEOUT='' \ |
150 |
eval NM_ONLINE_TIMEOUT='' \ |
| 151 |
`grep -s '^[[:space:]]*NM_ONLINE_TIMEOUT=' \ |
151 |
`grep -s '^[[:space:]]*NM_ONLINE_TIMEOUT=' \ |
| 152 |
etc/sysconfig/network/config` |
152 |
etc/sysconfig/network/config` |
| 153 |
[ "x$NM_ONLINE_TIMEOUT" = "x0" ] && \ |
153 |
[ "x$NM_ONLINE_TIMEOUT" = "x$OLD_NM_ONLINE_TIMEOUT" ] && \ |
| 154 |
sysconfig_remove_and_set network/config NM_ONLINE_TIMEOUT |
154 |
sysconfig_remove_and_set network/config NM_ONLINE_TIMEOUT |
| 155 |
fi |
155 |
fi |
| 156 |
%{fillup_only -dns dhcp network network} |
156 |
%{fillup_only -dns dhcp network network} |
| 157 |
- |
|
|