From: "Alexey I. Froloff" <raorn@altlinux.ru>
To: Mailing list for ALT Linux users <community@lists.altlinux.org>
Subject: Re: [Comm] pptp через etcnet, система не грузиться если нет сети
Date: Wed, 4 Jun 2008 15:14:42 +0400
Message-ID: <20080604111442.GA27577@hell.fortress> (raw)
In-Reply-To: <484642F8.2090403@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 607 bytes --]
* Vasyuk_Maksim <vaksim@> [080604 11:28]:
> В общем сляпал такой скрипток:
> Скрипту дал права админа. Запихал в cron от root.
[..skip..]
Иногда бывает (принцип до конца не понял), что скрипты под
кроном стартуют с урезанным $PATH. Используйте полные пути до
всех утилит или выставляйте $PATH.
В данном случае такой скрипт слишком большой и сложный. Вот это
работало у меня верой и правдой около года (пока pppoe на wifi
роутер не вынес):
===
#!/bin/sh
ppp='ppp0'
[ -s /var/run/"$ppp".pid ] && exit 0 ||: >/dev/null 2>&1
exec /sbin/ifup "$ppp"
===
--
Regards,
Sir Raorn.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2008-06-04 11:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-07 16:12 Vasyuk_Maksim
2008-05-07 18:21 ` Michael Shigorin
2008-05-08 5:16 ` Дегтярёв Дмитрий
2008-05-08 6:37 ` Michael Shigorin
2008-05-08 13:17 ` Alexey I. Froloff
2008-05-12 3:50 ` Дегтярёв Дмитрий
2008-06-04 7:23 ` Vasyuk_Maksim
2008-06-04 11:14 ` Alexey I. Froloff [this message]
2008-06-04 15:06 ` Vasyuk_Maksim
2008-06-04 15:32 ` Alexey I. Froloff
2008-06-06 4:03 ` Vasyuk_Maksim
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=20080604111442.GA27577@hell.fortress \
--to=raorn@altlinux.ru \
--cc=community@lists.altlinux.org \
/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 Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git