Browse Source

first rocknet fixes:

fix auto interface handling
perform a /etc/network/getprofile execution in the new network.init


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1823 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
48764e3ccd
3 changed files with 9 additions and 4 deletions
  1. +2
    -1
      package/base/sysfiles/ifup.sh
  2. +6
    -2
      package/base/sysfiles/network.init
  3. +1
    -1
      package/base/sysfiles/rocknet_modules_base.sh

+ 2
- 1
package/base/sysfiles/ifup.sh

@ -13,5 +13,6 @@ else
profile="$2"
fi
/etc/network/rocknet $1 $2 ${x#if}
/etc/network/rocknet "$1" "$2" "${x#if}"
echo "$profile" > /etc/network/proflie

+ 6
- 2
package/base/sysfiles/network.init

@ -30,11 +30,15 @@ main_begin
block_begin(start, `Setting up network devices.')
[ -x /etc/network/getprofile ] && /etc/network/getprofile
check(`/etc/network/rocknet auto auto up')
profile="`cat /etc/network/profile`"
profile={profile:-default}
check(`/etc/network/rocknet $profile auto up')
block_end
block_begin(stop, `Shutting down network devices.')
check(`/etc/network/rocknet auto auto down')
profile="`cat /etc/network/profile`"
profile={profile:-default}
check(`/etc/network/rocknet $profile auto down')
block_end
main_end

+ 1
- 1
package/base/sysfiles/rocknet_modules_base.sh

@ -7,7 +7,7 @@ public_auto() {
auto_if=()
for x in "$@"; do
a="${x%(*}"; b="${x#*(}"
b="${b#)}"; b="${b//,/ }"
b="${b/)}"; b="${b//,/ }"
if [ "$a" = "$b" ]; then
auto_if[${#auto_if[*]}]="$a"
else

Loading…
Cancel
Save