Changeset 5621def


Ignore:
Timestamp:
03/26/2022 10:07:10 PM (2 years ago)
Author:
William Harrington <kb0iic@…>
Branches:
arm
Children:
5730474
Parents:
101ec20
git-author:
Pierre Labastie <pierre.labastie@…> (03/23/2022 09:03:34 AM)
git-committer:
William Harrington <kb0iic@…> (03/26/2022 10:07:10 PM)
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

    r101ec20 r5621def  
    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.