aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-plip
blob: 48bcc2cafcd84bbf7c2f03635aefbcfe3feee09f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh

cd /etc/sysconfig/network-scripts
. ./network-functions

CONFIG=$1
source_config

if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ]
then
	exit
fi

ifconfig ${DEVICE} ${IPADDR} pointopoint ${REMIP}
route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE}

# this is broken! it's only here to keep compatibility with old RH systems
if [ "${GATEWAY}" != "" -a "${GATEWAY}" != "none" ]
then
	route add default gw ${GATEWAY} metric ${METRIC:-1} ${DEVICE}
fi

. /etc/sysconfig/network

if [ "${GATEWAY}" != "" ]; then
	if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then
		# set up default gateway
		route add default gw ${GATEWAY} ${METRIC:+metric $METRIC}
	fi
fi

/etc/sysconfig/network-scripts/ifup-post $1
* #763 #2336 fix alias in modules.confDamien Chaumette2003-05-201-0/+5 * (removeverticalbar) pixelateThierry Vignaud2003-05-201-2/+1 * prevent set_usermode() vs set_cups_autoconf() conflictThierry Vignaud2003-05-201-1/+2 * restore service restartThierry Vignaud2003-05-201-0/+2 * perl_checker fixesThierry Vignaud2003-05-202-44/+39 * try to simplifyThierry Vignaud2003-05-201-22/+11 * one last fixThierry Vignaud2003-05-201-0/+1 * fix BUG 2530, no more spurious window when insmoding failDamien Chaumette2003-05-201-1/+2 * further bits for 9.2-0.1mdkThierry Vignaud2003-05-201-0/+2 * fix #1743: offer to restart the dm serviceThierry Vignaud2003-05-201-0/+4 * (addprinter,isprinterconfigured): remove temp variablesThierry Vignaud2003-05-201-4/+2 * updated German, Estonian and Finnish filesPablo Saratxaga2003-05-203-1420/+1964 * (find_servers): chomp is uneededThierry Vignaud2003-05-201-1/+0 * (put_font_dir): $/variable is unlikely what was initially intendedThierry Vignaud2003-05-201-10/+3 * (chk_empty_xfs_path):Thierry Vignaud2003-05-201-2/+2 * (file_ok_sel) prevent potential crash in perl regexp engine if sg badThierry Vignaud2003-05-201-1/+1 * (find_exports) better behavior when regexp does not matchThierry Vignaud2003-05-201-1/+1 * for whatever reason, the second part of detect_bootloader()Thierry Vignaud2003-05-201-1/+1 * update french translationThierry Vignaud2003-05-201-67/+54 * better explanation of the wp fieldThierry Vignaud2003-05-201-1/+1 * fix #3960: divide by zero execptionThierry Vignaud2003-05-201-1/+1 * fix #3959 : add aic79xx scsi host controller driverThierry Vignaud2003-05-201-1/+1 * perl_checker compliantDamien Chaumette2003-05-201-8/+7 * first bits of 9.2-0.1mdkThierry Vignaud2003-05-201-2/+6 * fix #3952: do not pass extra argument (gc alteredThierry Vignaud2003-05-201-1/+1 * - fix #3616 (draksec discarding changes)Thierry Vignaud2003-05-201-2/+2 * perl_checker fixThierry Vignaud2003-05-201-2/+2 * add a bug referenceThierry Vignaud2003-05-191-1/+1 * some drakconnect cleanupsThierry Vignaud2003-05-191-5/+2 * in standalone drakboot, raise a wait message window so that the user can figureThierry Vignaud2003-05-191-0/+2 * dialog window is already modalThierry Vignaud2003-05-191-1/+0 * - (read_location, rip_location): simplify loop condition since once we getThierry Vignaud2003-05-191-5/+3 * - (get_cups_autoconf, set_cups_autoconf, get_usermode, set_usermode): simplifyThierry Vignaud2003-05-191-72/+13 * (gimp::pop_spaces): consolidate skipping of lines that are space endedThierry Vignaud2003-05-191-8/+9 * perl_checker fixesThierry Vignaud2003-05-198-308/+297 * localize drive capabilites (aka burning, dvd managment, ...)Thierry Vignaud2003-05-191-0/+5 * fix #3560 (drakboot not updating bootloader label): the only confusingThierry Vignaud2003-05-192-3/+15 * further fix #2826 (lilo failling to handle entry with spaces): replaceThierry Vignaud2003-05-191-0/+1 * when configuring to install grub bootloader, we first install lilo, then grub.Thierry Vignaud2003-05-191-1/+1 * let further consolidate make_label_lilo_compatible()Thierry Vignaud2003-05-191-2/+2 * fix network::netconnect::save_conf() calleeThierry Vignaud2003-05-191-1/+1 * updated Spanish translationsFabián Mandelbaum2003-05-191-221/+176 * simplifyThierry Vignaud2003-05-191-5/+2 * do not drop return values from regexp but use them to ensure we do notThierry Vignaud2003-05-191-1/+1 * move expert stuff under the "advanced" button like in all other drakx/drakxto...Thierry Vignaud2003-05-191-7/+6 * %langs: first column is supposed to be localized in englishThierry Vignaud2003-05-191-3/+3 * last 9.1-38mdk bitsThierry Vignaud2003-05-191-1/+7 * update perl-gtk0 users list (drakcronat being ported to gtk+2)Thierry Vignaud2003-05-191-1/+4 * first bits of 9.1-38mdkThierry Vignaud2003-05-161-2/+5 * updated pot filePablo Saratxaga2003-05-16