Ignore:
Timestamp:
04/09/2012 07:14:33 PM (12 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
9bb0228
Parents:
b12948d
Message:

Update networking bootscripts. See bootscripts change log for details.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9807 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
bootscripts/lfs/lib/services
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/lfs/lib/services/init-functions

    rb12948d r970a126  
    779779}
    780780
     781################################################################################
     782# is_true()                                                                    #
     783#                                                                              #
     784# Purpose: Utility to test if a variable is true | yes | 1                     #
     785#                                                                              #
     786################################################################################
     787is_true()
     788{
     789   [ "$1" = "1" ] || [ "$1" = "yes" ] || [ "$1" = "true" ] ||  [ "$1" = "y" ] ||
     790   [ "$1" = "t" ]
     791}
     792
    781793# End /lib/lsb/init-functions
  • bootscripts/lfs/lib/services/ipv4-static

    rb12948d r970a126  
    5353         ip addr add ${args} dev ${1}
    5454         evaluate_retval
    55 
    56          if [ -n "${GATEWAY}" ]; then
    57             if ip route | grep -q default; then
    58                log_warning_msg "\nGateway already setup; skipping."
    59             else
    60                log_info_msg "Setting up default gateway..."
    61                ip route add default via ${GATEWAY} dev ${1}
    62                evaluate_retval
    63              fi
    64          fi
    6555      else
    66          msg="Cannot add IPv4 address ${IP} to ${1}.  Already present."
    67          log_warning_msg "$msg"
     56         log_warning_msg "Cannot add IPv4 address ${IP} to ${1}.  Already present."
    6857      fi
    6958   ;;
Note: See TracChangeset for help on using the changeset viewer.