From a4a25465cd2844d72bf518188b813c009450f505 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 23 Jan 2001 19:59:11 +0000 Subject: change i18n stuff around; don't call gettext explicitly, just do echo $"some string" --- sysconfig/network-scripts/ifup | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'sysconfig/network-scripts/ifup') diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index df2ecef1..0e5ee116 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -11,13 +11,13 @@ need_hostname CONFIG=${1} [ -z "${CONFIG}" ] && { - gprintf "usage: ifup \n" >&2 + echo $"usage: ifup " >&2 exit 1 } [ -f "${CONFIG}" ] || CONFIG=ifcfg-${CONFIG} [ -f "${CONFIG}" ] || { - gprintf "usage: ifup \n" >&2 + echo $"usage: ifup " >&2 exit 1 } @@ -27,7 +27,7 @@ if [ ${UID} != 0 ]; then exec /usr/sbin/usernetctl ${CONFIG} up fi fi - gprintf "Users cannot control this device.\n" >&2 + echo $"Users cannot control this device." >&2 exit 1 fi @@ -74,7 +74,7 @@ fi # is this device available? (this catches PCMCIA devices for us) LC_ALL= LANG= /sbin/ifconfig ${REALDEVICE} 2>&1 | grep -s "not found" > /dev/null if [ "$?" = "0" ]; then - gprintf "Delaying %s initialization.\n" "${DEVICE}" + echo $"Delaying ${DEVICE} initialization." exit 1 fi @@ -83,7 +83,7 @@ if [ "${SLAVE}" = yes -a "${ISALIAS}" = no -a "${MASTER}" != "" -a \ RFLAG="" ; [ "${RECEIVEONLY}" = yes ] && RFLAG="-r" ifconfig ${DEVICE} down - gprintf "Enslaving %s to %s" "${DEVICE}" "${MASTER}" + echo $"Enslaving ${DEVICE} to ${MASTER}" ifenslave ${RFLAG} "${MASTER}" "${DEVICE}" exit 0 @@ -108,14 +108,14 @@ if [ -n "${DYNCONFIG}" ]; then PUMPARGS="${PUMPARGS} -d" DHCPDARGS="${DHCPDARGS} -R" fi - gprintf "Determining IP information for %s..." "${DEVICE}" + echo -n $"Determining IP information for ${DEVICE}..." if [ -x /sbin/pump ] && /sbin/pump ${PUMPARGS} -i ${DEVICE} ; then - gprintf " done.\n" + echo $" done." elif [ -x /sbin/dhcpcd ] && /sbin/dhcpcd ${DHCPCDARGS} ${DEVICE} ; then - gprintf " done.\n" + echo $" done." else - gprintf " failed.\n" + echo $" failed." exit 1 fi else -- cgit v1.2.1