Changeset 970a126 for bootscripts/lfs/lib/services
- Timestamp:
- 04/09/2012 07:14:33 PM (12 years ago)
- 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
- Location:
- bootscripts/lfs/lib/services
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/lib/services/init-functions
rb12948d r970a126 779 779 } 780 780 781 ################################################################################ 782 # is_true() # 783 # # 784 # Purpose: Utility to test if a variable is true | yes | 1 # 785 # # 786 ################################################################################ 787 is_true() 788 { 789 [ "$1" = "1" ] || [ "$1" = "yes" ] || [ "$1" = "true" ] || [ "$1" = "y" ] || 790 [ "$1" = "t" ] 791 } 792 781 793 # End /lib/lsb/init-functions -
bootscripts/lfs/lib/services/ipv4-static
rb12948d r970a126 53 53 ip addr add ${args} dev ${1} 54 54 evaluate_retval 55 56 if [ -n "${GATEWAY}" ]; then57 if ip route | grep -q default; then58 log_warning_msg "\nGateway already setup; skipping."59 else60 log_info_msg "Setting up default gateway..."61 ip route add default via ${GATEWAY} dev ${1}62 evaluate_retval63 fi64 fi65 55 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." 68 57 fi 69 58 ;;
Note:
See TracChangeset
for help on using the changeset viewer.