projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correction erreur type de script installation
[hvlinux.git]
/
stage2
/
bootscripts
/
network
diff --git
a/stage2/bootscripts/network
b/stage2/bootscripts/network
index
3fa69ff
..
70ac088
100755
(executable)
--- a/
stage2/bootscripts/network
+++ b/
stage2/bootscripts/network
@@
-20,12
+20,6
@@
if [ ! -x /sbin/ip ]; then
exit ${EXIT_CODE_FAILURE}
fi
exit ${EXIT_CODE_FAILURE}
fi
-# Check that the hostname program is present and executable.
-if [ ! -x /bin/hostname ]; then
- msg_log "*** ERROR: /bin/hostname not found."
- exit ${EXIT_CODE_FAILURE}
-fi
-
CWD=`pwd`
cd /etc/sysconfig/network
CWD=`pwd`
cd /etc/sysconfig/network
@@
-34,21
+28,15
@@
case "$1" in
start)
for i in ${INTERFACES_UP}; do
if LANG=C egrep -L "^ONBOOT=\"?[Yy][Ee][Ss]\"?" ifconfig.$i >/dev/null 2>&1 ; then
start)
for i in ${INTERFACES_UP}; do
if LANG=C egrep -L "^ONBOOT=\"?[Yy][Ee][Ss]\"?" ifconfig.$i >/dev/null 2>&1 ; then
- cmd_run_log_box "Ethernet Adapter <$i> init" /etc/rc.d/init.d/ifup "$i"
+ cmd_run_log_box
_warn
"Ethernet Adapter <$i> init" /etc/rc.d/init.d/ifup "$i"
fi
done
fi
done
-
- cmd_run_log_box "Setting hostname: ${DEFAULT_HOSTNAME}" /bin/hostname ${DEFAULT_HOSTNAME}
-
- if [ -n "${GATEWAY}" ]; then
- cmd_run_log_box "Adding default route to gateway ${GATEWAY}" ip route add default via ${GATEWAY}
- fi
;;
stop)
for i in ${INTERFACES_DN} ; do
if LC_ALL= LANG= ip link show dev $i 2> /dev/null | grep -q "UP" >/dev/null 2>&1 ; then
;;
stop)
for i in ${INTERFACES_DN} ; do
if LC_ALL= LANG= ip link show dev $i 2> /dev/null | grep -q "UP" >/dev/null 2>&1 ; then
- cmd_run_log_box "Ethernet Adapter <$i> stop" /etc/rc.d/init.d/ifdown "$i"
+ cmd_run_log_box
_warn
"Ethernet Adapter <$i> stop" /etc/rc.d/init.d/ifdown "$i"
fi
done
;;
fi
done
;;