Changeset ed6ffcb


Ignore:
Timestamp:
03/25/2022 09:52:34 AM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
497d435
Parents:
2539253
git-author:
Pierre Labastie <pierre.labastie@…> (03/23/2022 09:03:34 AM)
git-committer:
Pierre Labastie <pierre.labastie@…> (03/25/2022 09:52:34 AM)
Message:

network bootscript: Don't run ifup if route already set

Otherwise, warnings are issued when changing runlevel. "ip route"
is a good test of whether network is already up. If users want to
change some config, they should use ifup/down, not the network
bootscript.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/lfs/init.d/network

    r2539253 red6ffcb  
    3030case "${1}" in
    3131   start)
     32      # if the default route exists, network is already configured
     33      if ip route | grep -q "^default"; then return 0; fi
    3234      # Start all network interfaces
    3335      for file in /etc/sysconfig/ifconfig.*
Note: See TracChangeset for help on using the changeset viewer.