Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 20 years ago
parent
commit
c1d5614de6
4 changed files with 94 additions and 5 deletions
  1. +36
    -0
      package/base/sysfiles/rocknet_getprofile
  2. +4
    -5
      package/base/sysfiles/sysfiles.conf
  3. +41
    -0
      package/clifford/arping/arping.desc
  4. +13
    -0
      package/clifford/arping/usrlocal.patch

+ 36
- 0
package/base/sysfiles/rocknet_getprofile

@ -0,0 +1,36 @@
#!/bin/bash
#
# Example for ROCKNET profile auto-detection.
# on default do nothing
exit 0
echo -n "Trying to auto-detect network profile .. "
echo default > /etc/network/profile
# we need to activate the interfaces for the test
ip l set eth0 up &> /dev/null
ip l set eth1 up &> /dev/null
# use arping to check for a well-known IPs
(
if arping -i eth0 -c3 10.0.23.42; then
echo foo > /etc/network/profile
fi
) &> /dev/null &
# maybe we have found that essid
(
sleep 2 # give it some time to get the essid
if iwconfig eth1 | grep -q 'ESSID:"MyWLAN"'; then
echo bar > /etc/network/profile
fi
) &> /dev/null &
# wait for all childs to finish, output found profile
wait; cat /etc/network/profile
# deactivate the interfaces, the profile might activate them again
ip l set eth0 down &> /dev/null
ip l set eth1 down &> /dev/null

+ 4
- 5
package/base/sysfiles/sysfiles.conf

@ -67,14 +67,13 @@ EOT
echo "Installing the rock-net tool ..."
cp -v $confdir/rocknet.sh etc/network/rocknet
chmod +x etc/network/rocknet
for x in $( cd $confdir ; echo rocknet_*.sh ) ; do
dst="${x#rocknet_}" ; z="/"
dst="${dst//_/$z}"
for x in $( cd $confdir; echo rocknet_{*.sh,README,getprofile}; ); do
dst="${x#rocknet_}"; z="/"; dst="${dst//_/$z}"
cp -vf $confdir/$x etc/network/$dst
done
cp -vf $confdir/ifup.sh sbin/ifup ; chmod +x sbin/ifup
cp -vf $confdir/ifup.sh sbin/ifup
chmod +x etc/network/getprofile sbin/ifup
ln -sf ifup sbin/ifdown
echo "Create /etc/issue, /etc/issue.ansi and /etc/issue.net ... "
rocktxt="ROCK Linux $rockver $arch"

+ 41
- 0
package/clifford/arping/arping.desc

@ -0,0 +1,41 @@
[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN ---
[COPY]
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY] Please add additional copyright information _after_ the line containing
[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
[COPY]
[COPY] ROCK Linux: rock-src/package/clifford/arping/arping.desc
[COPY] ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
[COPY]
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; either version 2 of the License, or
[COPY] (at your option) any later version. A copy of the GNU General Public
[COPY] License can be found at Documentation/COPYING.
[COPY]
[COPY] Many people helped and are helping developing ROCK Linux. Please
[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM
[COPY] file for details.
[COPY]
[COPY] --- ROCK-COPYRIGHT-NOTE-END ---
[I] sending arp and/or ip pings to a given host
[T] The arping utility sends ARP and/or ICMP requests to the specified host
[T] and displays the replies. The host may be specified by its hostname,
[T] its IP address, or its MAC address.
[A] Thomas Habets <thomas@habets.pp.se>
[M] Clifford Wolf <clifford@clifford.at>
[C] extra/network
[L] GPL
[S] Stable
[V] 2.03
[P] X -----5---9 368.950
[D] 0 arping-2.03.tar.gz ftp://ftp.habets.pp.se/pub/synscan/

+ 13
- 0
package/clifford/arping/usrlocal.patch

@ -0,0 +1,13 @@
--- ./Makefile.orig 2004-05-23 00:51:39.000000000 +0200
+++ ./Makefile 2004-05-23 00:52:08.000000000 +0200
@@ -83,8 +83,8 @@
$(MAKE) USE_NETIF=0 SOLARIS=1 arping1-make
install:
- install -c arping /usr/local/bin/arping
- install arping.8 /usr/local/man/man8/arping.8
+ install -c arping /usr/bin/arping
+ install arping.8 /usr/man/man8/arping.8
arping.o: arping.c
$(CC) -Wall $(CFLAGS) -c `libnet-config --defines` `libnet-config --cflags` arping.c

Loading…
Cancel
Save