Add win4lin
This commit is contained in:
26
net-misc/ipx-utils/files/ipx.confd
Normal file
26
net-misc/ipx-utils/files/ipx.confd
Normal file
@@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Config file for /etc/init.d/ipx
|
||||
|
||||
# Automatically selecting a primary interface.
|
||||
IPX_AUTO_PRIMARY=on
|
||||
|
||||
# Automatically creating interfaces.
|
||||
IPX_AUTO_INTERFACE=on
|
||||
|
||||
# Interface to which IPX sockets are bound.
|
||||
IPX_DEVICE=eth0
|
||||
|
||||
# The IPX frame type to use
|
||||
IPX_FRAME=802.2
|
||||
|
||||
# Create a special kind of IPX interface that does not
|
||||
# have a physical device or frame type.
|
||||
IPX_INTERNAL_NET=no
|
||||
|
||||
# Network number
|
||||
IPX_NETNUM=1
|
||||
|
||||
# Node number
|
||||
IPX_NODENUM=1
|
||||
41
net-misc/ipx-utils/files/ipx.init
Normal file
41
net-misc/ipx-utils/files/ipx.init
Normal file
@@ -0,0 +1,41 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
#NB: Config is in /etc/conf.d/ipx
|
||||
|
||||
depend() {
|
||||
use net
|
||||
}
|
||||
|
||||
start() {
|
||||
local retval=0
|
||||
|
||||
ebegin "Bringing IPX up"
|
||||
if [ ${IPX_INTERNAL_NET} = "yes" ]
|
||||
then
|
||||
/sbin/ipx_internal_net add ${IPX_NETNUM} ${IPX_NODENUM}
|
||||
retval=$?
|
||||
else
|
||||
/sbin/ipx_interface add -p ${IPX_DEVICE} \
|
||||
${IPX_FRAME} ${IPX_NETNUM}
|
||||
retval=$?
|
||||
fi
|
||||
|
||||
/sbin/ipx_configure \
|
||||
--auto_primary=${IPX_AUTO_PRIMARY} \
|
||||
--auto_interface=${IPX_AUTO_INTERFACE}
|
||||
retval=$(( $retval + $? ))
|
||||
eend ${retval} "Failed to bring IPX up"
|
||||
}
|
||||
|
||||
stop() {
|
||||
local retval=0
|
||||
|
||||
ebegin "Bringing IPX down"
|
||||
/sbin/ipx_configure --auto_primary=off --auto_interface=off
|
||||
retval=$?
|
||||
/sbin/ipx_interface delall
|
||||
retval=$(( $retval + $? ))
|
||||
eend ${retval} "Failed to down IPX"
|
||||
}
|
||||
Reference in New Issue
Block a user