<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Автозагрузка]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=8888&amp;type=atom" />
	<updated>2010-12-05T01:05:04Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=8888</id>
		<entry>
			<title type="html"><![CDATA[Re: Автозагрузка]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118935#p118935" />
			<content type="html"><![CDATA[<p>Всем спасибо! Получилось. smile</p>]]></content>
			<author>
				<name><![CDATA[Wolfenberg]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9425</uri>
			</author>
			<updated>2010-12-05T01:05:04Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118935#p118935</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Автозагрузка]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118819#p118819" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>odin пишет:</cite><blockquote><p>а что запуск через network scripts уже не в моде?.... неужели проще ставить костыли и подпорки?</p></blockquote></div><p>дык труЪ</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2010-12-04T15:21:12Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118819#p118819</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Автозагрузка]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118817#p118817" />
			<content type="html"><![CDATA[<p>а что запуск через network scripts уже не в моде?.... неужели проще ставить костыли и подпорки?</p><p>нужно создать /etc/sysconfig/network-scripts/ifcfg-&lt;ваш интерфейс&gt; (к примеру ifcfg-ppp0) .... и вписать в него нужные параметры... примеров и мануалов в интернете можно найти много....</p>]]></content>
			<author>
				<name><![CDATA[odin]]></name>
				<uri>https://linuxforum.ru/profile.php?id=7138</uri>
			</author>
			<updated>2010-12-04T15:16:13Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118817#p118817</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Автозагрузка]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118815#p118815" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Wolfenberg пишет:</cite><blockquote><p>В файл /etc/rc.local вписал sh ~/vpn.sh</p></blockquote></div><p>в момент отработки rc.local ещё не заданны переменные окружения. Например $HOME и $PATH. Потому либо вы их сами инициализируйте, либо, как пишет <strong>sbin</strong>, задавайте полный путь до каждого файла (вообще говоря, это касается и внутренностей скрипта. т.е. <strong>/sbin/route</strong>)</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2010-12-04T15:04:58Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118815#p118815</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Автозагрузка]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118807#p118807" />
			<content type="html"><![CDATA[<p>Wolfenberg, попробуйте вписать полный путь до vpn.sh</p>]]></content>
			<author>
				<name><![CDATA[sbin]]></name>
				<uri>https://linuxforum.ru/profile.php?id=4419</uri>
			</author>
			<updated>2010-12-04T14:21:20Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118807#p118807</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Автозагрузка]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118765#p118765" />
			<content type="html"><![CDATA[<p><strong>drBatty</strong><br />Странно-скрипт запускается и выполняется shell&#039;ом на &quot;ура&quot;, но система в упор не хочет его признавать в rc.local. oO <br />Таблица маршрутов, создаваемая скриптом ~/vpn.sh:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">[root@localhost medvezhka]# route -v<br />Kernel IP routing table<br />Destination&nbsp; &nbsp; &nbsp;Gateway&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Genmask&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Flags Metric Ref&nbsp; &nbsp; Use Iface<br />192.168.0.9&nbsp; &nbsp; &nbsp;172.16.72.1&nbsp; &nbsp; &nbsp;255.255.255.255 UGH&nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />192.168.0.8&nbsp; &nbsp; &nbsp;172.16.72.1&nbsp; &nbsp; &nbsp;255.255.255.255 UGH&nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />ns2.avtograd.ru 172.16.72.1&nbsp; &nbsp; &nbsp;255.255.255.255 UGH&nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />192.168.0.1&nbsp; &nbsp; &nbsp;172.16.72.1&nbsp; &nbsp; &nbsp;255.255.255.255 UGH&nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />ns.avtograd.ru&nbsp; 172.16.72.1&nbsp; &nbsp; &nbsp;255.255.255.255 UGH&nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />109.226.88.1&nbsp; &nbsp; *&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;255.255.255.255 UH&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 ppp0<br />192.168.0.3&nbsp; &nbsp; &nbsp;172.16.72.1&nbsp; &nbsp; &nbsp;255.255.255.255 UGH&nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />192.168.0.2&nbsp; &nbsp; &nbsp;172.16.72.1&nbsp; &nbsp; &nbsp;255.255.255.255 UGH&nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />192.168.0.5&nbsp; &nbsp; &nbsp;172.16.72.1&nbsp; &nbsp; &nbsp;255.255.255.255 UGH&nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />192.168.0.4&nbsp; &nbsp; &nbsp;172.16.72.1&nbsp; &nbsp; &nbsp;255.255.255.255 UGH&nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />192.168.0.7&nbsp; &nbsp; &nbsp;172.16.72.1&nbsp; &nbsp; &nbsp;255.255.255.255 UGH&nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />192.168.0.6&nbsp; &nbsp; &nbsp;172.16.72.1&nbsp; &nbsp; &nbsp;255.255.255.255 UGH&nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />192.168.0.0&nbsp; &nbsp; &nbsp;172.16.72.1&nbsp; &nbsp; &nbsp;255.255.255.0&nbsp; &nbsp;UG&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />172.16.72.0&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;255.255.255.0&nbsp; &nbsp;U&nbsp; &nbsp; &nbsp;10&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />link-local&nbsp; &nbsp; &nbsp; *&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;255.255.0.0&nbsp; &nbsp; &nbsp;U&nbsp; &nbsp; &nbsp;10&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />172.16.0.0&nbsp; &nbsp; &nbsp; 172.16.72.1&nbsp; &nbsp; &nbsp;255.240.0.0&nbsp; &nbsp; &nbsp;UG&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />10.0.0.0&nbsp; &nbsp; &nbsp; &nbsp; 172.16.72.1&nbsp; &nbsp; &nbsp;255.0.0.0&nbsp; &nbsp; &nbsp; &nbsp;UG&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />default&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.0.0.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;U&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0 ppp0<br />default&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;172.16.72.1&nbsp; &nbsp; &nbsp;0.0.0.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;UG&nbsp; &nbsp; 10&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; 0 eth0</div></p></div></div><p>В файл /etc/rc.local вписал sh ~/vpn.sh</p>]]></content>
			<author>
				<name><![CDATA[Wolfenberg]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9425</uri>
			</author>
			<updated>2010-12-04T11:12:48Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118765#p118765</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Автозагрузка]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118762#p118762" />
			<content type="html"><![CDATA[<p><strong>drBatty</strong>, скрипт уже создан (сейчас с него сюда попал) smile Просто видоизменил файл, прописываемый в Kubuntu.<br />Теперь осталось его в автозагрузке проверить.</p>]]></content>
			<author>
				<name><![CDATA[Wolfenberg]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9425</uri>
			</author>
			<updated>2010-12-04T10:59:15Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118762#p118762</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Автозагрузка]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118754#p118754" />
			<content type="html"><![CDATA[<p><strong>Wolfenberg</strong>, если-бы вы сделали так, как советует <strong>papin-aziat</strong>, то тогда смогли-бы отправить весь вывод в лог файл, а потом его почитать.</p><p>И обратите внимание на ключ <strong>route -v</strong>.</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2010-12-04T10:34:12Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118754#p118754</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Автозагрузка]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118744#p118744" />
			<content type="html"><![CDATA[<p><strong>drBatty</strong>, спасибо! smile<br />Перезапустил систему - та же история. Только в shell&#039;е пауза появилась.</p>]]></content>
			<author>
				<name><![CDATA[Wolfenberg]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9425</uri>
			</author>
			<updated>2010-12-04T10:13:04Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118744#p118744</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Автозагрузка]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118743#p118743" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Wolfenberg пишет:</cite><blockquote><p>А здесь её можно прописать, как в Kubuntu, командой sleep 10?</p></blockquote></div><p>да</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2010-12-04T10:11:30Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118743#p118743</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Автозагрузка]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118741#p118741" />
			<content type="html"><![CDATA[<p><strong>papin-aziat</strong><br />Сами по себе эти команды работают.<br />Значит, лучше создать файл .sh а в локале просто организовать запуск? oO<br />Только вот задержку какой командой прописывать?</p>]]></content>
			<author>
				<name><![CDATA[Wolfenberg]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9425</uri>
			</author>
			<updated>2010-12-04T10:09:28Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118741#p118741</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Автозагрузка]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118737#p118737" />
			<content type="html"><![CDATA[<p><strong>Wolfenberg</strong>, вообще это плохая идея писать скрипты прямо в файлы типа rc.local. Создайте отдельный скрипт, протестируйте его хорошенько при всяких условиях, и потом уже поместите ссылку на него в rc.local.</p>]]></content>
			<author>
				<name><![CDATA[papin-aziat]]></name>
				<uri>https://linuxforum.ru/profile.php?id=314</uri>
			</author>
			<updated>2010-12-04T10:04:05Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118737#p118737</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Автозагрузка]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118735#p118735" />
			<content type="html"><![CDATA[<p><strong>drBatty</strong><br />А здесь её можно прописать, как в Kubuntu, командой sleep 10? oO</p>]]></content>
			<author>
				<name><![CDATA[Wolfenberg]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9425</uri>
			</author>
			<updated>2010-12-04T09:59:18Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118735#p118735</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Автозагрузка]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118733#p118733" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Wolfenberg пишет:</cite><blockquote><p>Теперь команды подьёма VPN вообще игнорируются, пока их команный процессор не запустит. blink</p></blockquote></div><p>не кажется-ли вам, что нужно ввести задержку после<br /></p><div class="codebox"><pre><code>pppd call aist</code></pre></div><p>?</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2010-12-04T09:53:25Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118733#p118733</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Автозагрузка]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118728#p118728" />
			<content type="html"><![CDATA[<p>Теперь команды подьёма VPN вообще игнорируются, пока их команный процессор не запустит. oO <br />Вот маршруты при старте:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">92.168.0.8 via 172.16.72.1 dev eth0&nbsp; src 172.16.72.101 <br />192.168.0.0/24 via 172.16.72.1 dev eth0 <br />172.16.72.0/24 dev eth0&nbsp; proto kernel&nbsp; scope link&nbsp; src 172.16.72.101&nbsp; metric 10 <br />169.254.0.0/16 dev eth0&nbsp; scope link&nbsp; metric 10 <br />172.16.0.0/12 via 172.16.72.1 dev eth0 <br />10.0.0.0/8 via 172.16.72.1 dev eth0 <br />default via 172.16.72.1 dev eth0&nbsp; metric 10</div></p></div></div><p>Принудительный подъём внешней сетки:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">192.168.0.8 via 172.16.72.1 dev eth0&nbsp; src 172.16.72.101 <br />109.226.88.1 dev ppp0&nbsp; proto kernel&nbsp; scope link&nbsp; src 109.226.89.28 <br />192.168.0.3 via 172.16.72.1 dev eth0&nbsp; src 172.16.72.101 <br />192.168.0.0/24 via 172.16.72.1 dev eth0 <br />172.16.72.0/24 dev eth0&nbsp; proto kernel&nbsp; scope link&nbsp; src 172.16.72.101&nbsp; metric 10 <br />169.254.0.0/16 dev eth0&nbsp; scope link&nbsp; metric 10 <br />172.16.0.0/12 via 172.16.72.1 dev eth0 <br />10.0.0.0/8 via 172.16.72.1 dev eth0 <br />default dev ppp0&nbsp; scope link <br />default via 172.16.72.1 dev eth0&nbsp; metric 10</div></p></div></div><p>Сам файл rc.local:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">touch /var/lock/subsys/local<br />pppd call aist<br />route add default ppp0<br />route add -net 192.168.0.0 netmask 255.255.255.0 gw 172.16.72.1 dev eth0<br />route add -net 172.16.0.0 netmask 255.240.0.0 gw 172.16.72.1 dev eth0<br />route add -net 10.0.0.0 netmask 255.0.0.0 gw 172.16.72.1 dev eth0</div></p></div></div>]]></content>
			<author>
				<name><![CDATA[Wolfenberg]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9425</uri>
			</author>
			<updated>2010-12-04T09:37:11Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118728#p118728</id>
		</entry>
</feed>
