ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: sisyphus@altlinux.ru
Subject: [sisyphus] Re: 2.4.21 & Promise IDE-controller
Date: Tue, 8 Jul 2003 16:22:46 +0300
Message-ID: <20030708132246.GG23827@osdn.org.ua> (raw)
In-Reply-To: <200307081852.20760.fnm@red-team.org.ua>

On Tue, Jul 08, 2003 at 06:52:20PM +0300, Nick Fedchik wrote:
> > > Я не об этом - зеракло, склейка или порознь?
> > В биосе настроено зеркало . И это же  зеркало становится доступно как
> > /dev/sda.
> Вот дела! Я удивлён. Должно по логике быть /dev/ataraid/dXpY

Нет, их бинарные драйвера делают именно /dev/sdX.

> Ну или mdN

Это md.o :)

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/
>From yznews@hotbox.ru  Tue Jul  8 17:40:26 2003
Return-Path: <yznews@hotbox.ru>
Delivered-To: sisyphus@lrn.ru
Received: from master.altlinux.ru (master.altlinux.ru [62.118.250.235])
	by lrn.ru (Postfix) with ESMTP id 8954049448
	for <sisyphus@lrn.ru>; Tue,  8 Jul 2003 17:40:26 +0400 (MSD)
Received: from post.com2com.ru (Post.com2com.ru [195.98.162.14])
	by master.altlinux.ru (Postfix) with ESMTP id 5AAABE31CF
	for <sisyphus@altlinux.ru>; Tue,  8 Jul 2003 17:40:26 +0400 (MSD)
Received: from home-pool4-115.com2com.ru (home-pool4-115.com2com.ru
	[195.98.164.115])
	by post.com2com.ru (8.12.9/8.12.6) with ESMTP id h68Debkj034105
	for <sisyphus@altlinux.ru>; Tue, 8 Jul 2003 17:40:37 +0400 (MSD)
Received: by home-pool4-111.com2com.ru (Postfix, from userid 500)
	id BB07F45E6; Tue,  8 Jul 2003 17:40:13 +0400 (MSD)
Date: Tue, 8 Jul 2003 17:40:13 +0400
From: Yura Zotov <yznews@hotbox.ru>
To: Sisyphus List <sisyphus@altlinux.ru>
Message-ID: <20030708134013.GA16043@home-pool4-109.com2com.ru>
Mail-Followup-To: Sisyphus List <sisyphus@altlinux.ru>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="huq684BweRXVnRxX"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.4.1i
Subject: [sisyphus] ifup-pptp
X-BeenThere: sisyphus@altlinux.ru
X-Mailman-Version: 2.1.1
Precedence: list
Reply-To: sisyphus@altlinux.ru
List-Id: <sisyphus.altlinux.ru>
List-Unsubscribe: <http://altlinux.ru/mailman/listinfo/sisyphus>,
	<mailto:sisyphus-request@altlinux.ru?subject=unsubscribe>
List-Archive: </pipermail/sisyphus>
List-Post: <mailto:sisyphus@altlinux.ru>
List-Help: <mailto:sisyphus-request@altlinux.ru?subject=help>
List-Subscribe: <http://altlinux.ru/mailman/listinfo/sisyphus>,
	<mailto:sisyphus-request@altlinux.ru?subject=subscribe>
X-List-Received-Date: Tue, 08 Jul 2003 13:40:26 -0000


--huq684BweRXVnRxX
Content-Type: text/plain; charset=koi8-r
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

Я написал скрипты, которые дают возможность стартовать
PPTP-туннели так же, как и другие сетевые интерфейсы, т.е.

ifup pptp0
ifdown pptp0

соответственно и service network start|stop тоже будет их
запускать/стопить.

Посмотрите, кто заинтересован. Если проблем не будет, я включу
эти скрипты следующую сборку пакета.


--
Юрий А. Зотов

--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=ifcfg-pptp0

ONBOOT=yes

# Must be defined by not null values
DEVICE=pptp0
PPTP_SERVER_IP="192.168.5.2"
PAPNAME=

# Recommended
DEBUG=yes

# Other
DEFROUTE=yes
PEERDNS=no
CALL=
DISCONNECTTIMEOUT=
RETRYTIMEOUT=
IDLETIMEOUT=
ESCAPECHARS=
MRU=
MTU=
IPADDR=
REMIP=

--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=ifup-pptp

#!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin

# Source function library.
. /etc/init.d/functions

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

# ifup-post for PPP is handled through /etc/ppp/ip-up

CONFIG=$1
[ -f "$CONFIG" ] || CONFIG="ifcfg-$1"
source_config

if [ -z "$PPTP_SERVER_IP" ]; then
  echo "ifup-pptp for $DEVICE exiting"
  logger -p daemon.info -t ifup-pptp \
    "PPTP-server IP address does not specified"
  exit 1
fi

if [ -z "$DISCONNECTTIMEOUT" ]; then
  DISCONNECTTIMEOUT=2
fi

if [ -z "$RETRYTIMEOUT" ]; then
  RETRYTIMEOUT=30
fi

if [ -z "$IDLETIMEOUT" ]; then
  IDLETIMEOUT=600
fi

if [ "$2" = "boot" -a "$ONBOOT" = "no" ]; then
  exit
fi
PPPD=/usr/sbin/pppd
[ -x "$PPPD" ] || {
  echo "$PPPD does not exist or is not executable"
  echo "ifup-pptp for $DEVICE exiting"
  logger -p daemon.info -t ifup-pptp \
    "$PPPD does not exist or is not executable for $DEVICE"
  exit 1
}


opts="lock"
if [ -n "$CALL" ]; then
	opts="$opts call $CALL"
fi
if [ "$ESCAPECHARS" != yes ] ; then
  opts="$opts asyncmap 00000000"
fi
if [ "$DEFROUTE" != no ] ; then
  # pppd will no longer delete an existing default route
  # so we have to help it out a little here.
  route del default >/dev/null 2>&1
  opts="$opts defaultroute"
fi
if [ "$PEERDNS" != no ] ; then
  opts="$opts usepeerdns"
fi
if [ -n "$MRU" ] ; then
  opts="$opts mru $MRU"
fi
if [ -n "$MTU" ] ; then
  opts="$opts mtu $MTU"
fi
if [ -n "$IPADDR$REMIP" ] ; then
  # if either IP address is set, the following will work.
  opts="$opts $IPADDR:$REMIP"
fi
if [ -n "$PAPNAME" ] ; then
  opts="$opts user $PAPNAME remotename $DEVNAME"
fi
if [ "$DEBUG" = yes ] ; then
  opts="$opts debug"
fi
if [ "$DEMAND" = yes ]; then
    opts="$opts demand ktune idle $IDLETIMEOUT holdoff $RETRYTIMEOUT"
fi

(logger -p daemon.info -t ifup-pptp \
  "PPTP tunnel to $PPTP_SERVER_IP started for $DEVICE" &)&

$PPPD $opts updetach ipparam "$DEVICE" linkname "$DEVICE" $PPPOPTIONS connect "/bin/true" pty "/usr/sbin/pptp $PPTP_SERVER_IP --nolaunchpppd $EXTRA_PPTP_OPTS" &> /dev/null

--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=ifdown-pptp

#!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin

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

CONFIG="$1"
[ -f "$CONFIG" ] || CONFIG="ifcfg-$1"
source_config

try_to_kill()
{
	local n="$1"
	shift
	local p="$1"

	local i=0
	while [ $i -lt "$n" ]; do
		[ ! -d "/proc/$p" ] && return 0
		kill -TERM "$p"
		[ ! -d "/proc/$p" ] && return 0
		sleep 1
		i=$[1+i]
	done
	[ ! -d "/proc/$p" ] && return 0 || return 1
}

if [ -s "/var/run/ppp-$DEVICE.pid" ]; then
	PID=`head -1 "/var/run/ppp-$DEVICE.pid"`
	try_to_kill 4 "$PID"
	exit
fi

--huq684BweRXVnRxX--
>From avp@altlinux.org  Tue Jul  8 17:45:46 2003
Return-Path: <avp@altlinux.org>
Delivered-To: sisyphus@lrn.ru
Received: from master.altlinux.ru (master.altlinux.ru [62.118.250.235])
	by lrn.ru (Postfix) with ESMTP id 3925B49448
	for <sisyphus@lrn.ru>; Tue,  8 Jul 2003 17:45:46 +0400 (MSD)
Received: from basalt.office.altlinux.org (localhost.localdomain [127.0.0.1])
	by master.altlinux.ru (Postfix) with ESMTP id 23B8BE31CF
	for <sisyphus@altlinux.ru>; Tue,  8 Jul 2003 17:45:46 +0400 (MSD)
Received: by basalt.office.altlinux.org (Postfix, from userid 525)
	id A922013C4; Tue,  8 Jul 2003 17:45:45 +0400 (MSD)
Date: Tue, 8 Jul 2003 17:45:45 +0400
From: Alexandre Prokoudine <avp@altlinux.ru>
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] ifup-pptp
Message-ID: <20030708134545.GC2776@altlinux.ru>
Mail-Followup-To: Alexandre Prokoudine <avp@altlinux.ru>,
	sisyphus@altlinux.ru
References: <20030708134013.GA16043@home-pool4-109.com2com.ru>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="gr/z0/N6AeWAPJVB"
Content-Disposition: inline
In-Reply-To: <20030708134013.GA16043@home-pool4-109.com2com.ru>
User-Agent: Mutt/1.4.1i
X-BeenThere: sisyphus@altlinux.ru
X-Mailman-Version: 2.1.1
Precedence: list
Reply-To: sisyphus@altlinux.ru
List-Id: <sisyphus.altlinux.ru>
List-Unsubscribe: <http://altlinux.ru/mailman/listinfo/sisyphus>,
	<mailto:sisyphus-request@altlinux.ru?subject=unsubscribe>
List-Archive: </pipermail/sisyphus>
List-Post: <mailto:sisyphus@altlinux.ru>
List-Help: <mailto:sisyphus-request@altlinux.ru?subject=help>
List-Subscribe: <http://altlinux.ru/mailman/listinfo/sisyphus>,
	<mailto:sisyphus-request@altlinux.ru?subject=subscribe>
X-List-Received-Date: Tue, 08 Jul 2003 13:45:46 -0000


--gr/z0/N6AeWAPJVB
Content-Type: text/plain; charset=koi8-r
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

Yura Zotov wrote
> Я написал скрипты, которые дают возможность стартовать
> PPTP-туннели так же, как и другие сетевые интерфейсы, т.е.
> 
> ifup pptp0
> ifdown pptp0
> 
> соответственно и service network start|stop тоже будет их
> запускать/стопить.
> 
> Посмотрите, кто заинтересован. Если проблем не будет, я включу
> эти скрипты следующую сборку пакета.

<каждой бочке object="затычка">

В случае одобрения прошу это по возможности документировать :-)

</каждой бочке>

-- 
Alexandre Prokoudine
ALT Linux Documentation Team
JabberID: avp@altlinux.org

--gr/z0/N6AeWAPJVB
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iQEVAwUBPwrLCVuz2hQ8IXD/AQKh5Qf+JEPa9nGHdZSL2KBM+ZDI+cvU+d7NWsns
d3e8kV+una6irtEwMZmHqwUZj5srFlV06MLS9vPp6O99fu1oHpCtME9IvyI4pejK
zN9iYATIDh9zoAPDLumjQXTLbcD6DP1sISeLymt9hL1uNtIJUUGT9+ctZ41FPZSc
GEMD/cOfWqk63dvbTnvNbtYyuLol/ewuR71rp/PtvzyT10+zcuKrQOwRTuJQWXkl
ketQ8pEpmiZAl6gHWxUFd9uUFoowIhJO5Oyxu9n3jvAfioxfosgdWc8tTw7lXWhF
pYU5cRE3CTua+OnW+KochhZhLkKNFzkHwqcQUzYElMBKfjSsIi9Ajg==
=nxL0
-----END PGP SIGNATURE-----

--gr/z0/N6AeWAPJVB--
>From salavat@regiongarant.ru  Tue Jul  8 17:52:23 2003
Return-Path: <salavat@regiongarant.ru>
Delivered-To: sisyphus@lrn.ru
Received: from master.altlinux.ru (master.altlinux.ru [62.118.250.235])
	by lrn.ru (Postfix) with ESMTP id 3BBDF494FF
	for <sisyphus@lrn.ru>; Tue,  8 Jul 2003 17:52:23 +0400 (MSD)
Received: from regiongarant.ru (unknown [213.33.207.254])
	by master.altlinux.ru (Postfix) with ESMTP id 044C4E31CF
	for <sisyphus@altlinux.ru>; Tue,  8 Jul 2003 17:52:23 +0400 (MSD)
Received: (from salavat@localhost)
	by regiongarant.ru (8.11.6/8.11.6) id h68DqMq30603
	for sisyphus@altlinux.ru.KAV; Tue, 8 Jul 2003 17:52:22 +0400
X-Authentication-Warning: regiongarant.ru: salavat set sender to
	salavat@regiongarant.ru using -f
Received: (from salavat@localhost)
	by regiongarant.ru (8.11.6/8.11.6) id h68DqMn30594
	for sisyphus@altlinux.ru; Tue, 8 Jul 2003 17:52:22 +0400
Date: Tue, 8 Jul 2003 17:52:22 +0400
From: Salavat Yarmukhametov <salavat@regiongarant.ru>
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] 2.4.21 & Promise IDE-controller
Message-ID: <20030708135222.GC28720@regiongarant.ru>
Mail-Followup-To: Salavat Yarmukhametov <salavat@regiongarant.ru>,
	sisyphus@altlinux.ru
References: <20030708073758.GC23730@regiongarant.ru>
	<200307081857.29527.nick@fedchik.org.ua>
Mime-Version: 1.0
Content-Type: text/plain; charset=koi8-r
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <200307081857.29527.nick@fedchik.org.ua>
X-BeenThere: sisyphus@altlinux.ru
X-Mailman-Version: 2.1.1
Precedence: list
Reply-To: Salavat Yarmukhametov <salavat@regiongarant.ru>,
	sisyphus@altlinux.ru
List-Id: <sisyphus.altlinux.ru>
List-Unsubscribe: <http://altlinux.ru/mailman/listinfo/sisyphus>,
	<mailto:sisyphus-request@altlinux.ru?subject=unsubscribe>
List-Archive: </pipermail/sisyphus>
List-Post: <mailto:sisyphus@altlinux.ru>
List-Help: <mailto:sisyphus-request@altlinux.ru?subject=help>
List-Subscribe: <http://altlinux.ru/mailman/listinfo/sisyphus>,
	<mailto:sisyphus-request@altlinux.ru?subject=subscribe>
X-List-Received-Date: Tue, 08 Jul 2003 13:52:23 -0000

On Tue, Jul 08, 2003 at 06:57:29PM +0300, Nick Fedchik wrote:
> On Tuesday 08 July 2003 10:37, Salavat Yarmukhametov wrote:
> 
> > У меня Asus Tusl2 с Promise PDC20265R. На сайтах asus и promise только
> > бинарные модули для каких то старых ядер. Где Вы брали драйвера?
> Дык а на кой тебе?
> Ядро видит, юзать можешь? Что ещё надо?
> Проблемы есть?

хочется к raid не программно обращаться как к /dev/hdx, а напрямую. Там
два винта висят, я их в bios зазеркалил.

> 
> > root@localhost ide]# cat /proc/ide/pdc202xx
> >
> > PROMISE Ultra series driver Ver 1.20.0.9         Date: 2002-08-01
> > Adapter : Ultra100 on M/B
> > VendorID: 0x105a  DeviceID: 0xd30  ClassID: 0x0104  IRQ: 0x9
> > --------------- Primary Channel ---------------- Secondary Channel
> > -------------
> > Status:          enabled                         enabled
> > Cable type:      80-pin                          80-pin
> > --------------- drive0 --------- drive1 -------- drive0 -------- drive1
> > --------
> > DMA enabled:     yes             no              yes             no
> > LBA48 Mode:      no              no              no              no
> > UDMA Mode:       5               0               5               0
> > PIO Mode:        4               0               4               0
> >
> >
> > 2.4.20alt-7
> 
> -- 
> Best regards, Nick Fedchik
> FNM3-RIPE(-UANIC) http://www.fedchik.org.ua
> 
> 
-- 
Salavat Yarmukhametov
salavat@regiongarant.ru
ICQ 21144441
registered Linux user number 318517



  parent reply	other threads:[~2003-07-08 13:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-05  6:18 ` [sisyphus] " Alexander Kubatkin
2003-07-07  8:06   ` Eugene A. Saveljev
2003-07-07  8:32     ` Nick Fedchik
2003-07-07  9:52       ` Shawkat
2003-07-07 11:14         ` Nick Fedchik
2003-07-07 11:31           ` Shawkat
2003-07-07 11:51             ` Nick Fedchik
2003-07-08  3:57               ` Shawkat
2003-07-08 13:22                   ` Michael Shigorin [this message]
2003-07-10  5:30                   ` Shawkat
2003-07-05 13:05 ` Nick Fedchik
2003-07-05 11:19   ` Owl
2003-07-05 12:09     ` Albert R. Valiev
2003-07-05 12:28     ` Nick Fedchik

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=20030708132246.GG23827@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=sisyphus@altlinux.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