ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Epiphanov Sergei <serpiph@nikiet.ru>
To: yuda66@yandex.ru,
	ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [OBORONA-SPAM] Re: [sisyphus] pptptunnel и определение ip-номера eth0
Date: Tue, 24 May 2005 14:32:22 +0400
Message-ID: <200505241432.22934.serpiph@nikiet.ru> (raw)
In-Reply-To: <200505241316.30969.yuda66@yandex.ru>

В сообщении от 24 Май 2005 14:16 Igor Tertishny написал:
> Вторник 24 Май 2005 13:00, Epiphanov Sergei написал:
> > /etc/dhcpc/dhcpcd-eth0.info
> Не выполняется, пишет:
> [root@srv dhcpc]# /etc/dhcpc/dhcpcd-eth0.info
> -bash: /etc/dhcpc/dhcpcd-eth0.info: Permission denied

Неправильно увидели команду. Выполните его как скрипт:

. /etc/dhcpc/dhcpcd-eth0.info

В скрипт вставьте вышеприведённую строку (с начальной точкой!). В таком виде 
все переменные попадут в вызывающий скрипт и их можно будет использовать в 
виде $IPADDR (ну или ${IPADDR}):

. /etc/dhcpc/dhcpcd-eth0.info

/sbin/route add -host 192.117.122.13 gw ${IPADDR}
/sbin/route del default
/sbin/route add default gw 192.117.110.146

-- 
С уважением, Епифанов Сергей


  parent reply	other threads:[~2005-05-24 10:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-24  9:29 Igor Tertishny
2005-05-24 10:00 ` Epiphanov Sergei
2005-05-24 10:16   ` [OBORONA-SPAM] " Igor Tertishny
2005-05-24 10:17     ` Maxim Timofeyev
2005-05-24 10:26       ` [sisyphus] " Michael Shigorin
2005-05-24 10:41       ` [OBORONA-SPAM] Re: [OBORONA-SPAM] Re: [sisyphus] " Igor Tertishny
2005-05-24 10:48         ` Maxim Timofeyev
2005-05-24 11:57         ` Epiphanov Sergei
2005-05-25  7:54           ` Re: " Igor Tertishny
2005-05-25  7:59             ` Maxim Timofeyev
2005-05-25  8:42               ` [OBORONA-SPAM] " Igor Tertishny
2005-05-25  9:18                 ` [sisyphus] " Michael Shigorin
2005-05-25 13:58                 ` [OBORONA-SPAM] Re: [sisyphus] " Denis Ovsienko
2005-05-25  8:00             ` Re: " Eugene Ostapets
2005-05-25  8:03             ` Led
2005-05-24 10:32     ` Epiphanov Sergei [this message]
2005-05-24 10:50 ` Denis Ovsienko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200505241432.22934.serpiph@nikiet.ru \
    --to=serpiph@nikiet.ru \
    --cc=sisyphus@altlinux.ru \
    --cc=yuda66@yandex.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git