1 make it work in locales where [a-z] DOES NOT DEFINE WHOLE ALPHABET, like et_EE locale
3 --- ./rc.d/init.d/network.america-rules 2005-07-07 19:28:21.000000000 +0300
4 +++ ./rc.d/init.d/network 2005-07-07 19:27:25.000000000 +0300
6 . /etc/rc.d/init.d/functions; \
7 cd /etc/sysconfig/interfaces && ls -1 ifcfg* | \
8 egrep -v '(ifcfg-lo|ifcfg-sit|ifcfg-atm|ifcfg-lec|ifcfg-nas|ifcfg-br|ifcfg-(.*)\.(.*))' | \
9 - egrep 'ifcfg-[a-z0-9\.:]+$' | \
10 + LC_ALL=C egrep 'ifcfg-[a-z0-9\.:]+$' | \
12 ONBOOT=""; . /etc/sysconfig/interfaces/"$i"; is_yes "$ONBOOT" && echo "$i"; \
15 . /etc/rc.d/init.d/functions; \
16 cd /etc/sysconfig/interfaces && ls -1 ifcfg* | \
17 egrep 'ifcfg-(.*)\.(.*)' | \
18 - egrep 'ifcfg-[a-z0-9\.]+$' | \
19 + LC_ALL=C egrep 'ifcfg-[a-z0-9\.]+$' | \
21 ONBOOT=""; . /etc/sysconfig/interfaces/"$i"; is_yes "$ONBOOT" && echo "$i"; \
24 interfaces_br_boot=$((
25 . /etc/rc.d/init.d/functions; \
26 cd /etc/sysconfig/interfaces && ls -1 ifcfg-br* | \
27 - egrep 'ifcfg-[a-z0-9\.]+$' | \
28 + LC_ALL=C egrep 'ifcfg-[a-z0-9\.]+$' | \
30 ONBOOT=""; . /etc/sysconfig/interfaces/"$i"; is_yes "$ONBOOT" && echo "$i"; \
33 interfaces_sit_boot=$((
34 . /etc/rc.d/init.d/functions; \
35 cd /etc/sysconfig/interfaces && ls -1 ifcfg-sit* | \
36 - egrep 'ifcfg-[a-z0-9]+$' | \
37 + LC_ALL=C egrep 'ifcfg-[a-z0-9]+$' | \
39 ONBOOT=""; . /etc/sysconfig/interfaces/"$i"; is_yes "$ONBOOT" && echo "$i"; \