Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 19 years ago
parent
commit
b6968219f9
3 changed files with 28 additions and 1 deletions
  1. +3
    -0
      package/base/sysfiles/rocknet.sh
  2. +24
    -0
      package/base/sysfiles/rocknet_config
  3. +1
    -1
      package/base/sysfiles/sysfiles.conf

+ 3
- 0
package/base/sysfiles/rocknet.sh

@ -14,6 +14,7 @@ code_snipplets_counter=0
lineno=0
ignore=0
global=1
retcode=0
if [ "$3" != "up" -a "$3" != "down" ]; then
echo "Usage: $0 { profile | default } { interface | auto } { up | down }"
@ -56,6 +57,7 @@ isfirst() {
#
error() {
echo "$*"
retcode=1
}
status() {
@ -115,3 +117,4 @@ done < <(
[ "$pmatched" = 1 -a "$imatched" = 0 ] && \
error "Unknown interface for profile: '$interface'"
exit $retcode

+ 24
- 0
package/base/sysfiles/rocknet_config

@ -0,0 +1,24 @@
#
# ROCKNET Example Config File
#
# The file /etc/network/README contains a detailed description of most
# available config directives for this file.
#
# Check out the modules in /etc/network/modules/* directly for information
# about the not so-well documented directives (such as directives from 3rd
# party modules).
#
### automatically set up interface eth0 on startup
# auto eth0
### interface eth0 is configured using DHCP
# interface eth0
# dhcp
### interface eth0 is configured using a static IP
# interface eth1
# ip 192.168.100.99/24
# gw 192.168.100.1

+ 1
- 1
package/base/sysfiles/sysfiles.conf

@ -67,7 +67,7 @@ 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,README,getprofile}; ); do
for x in $( cd $confdir; echo rocknet_{*.sh,README,config,getprofile}; ); do
dst="${x#rocknet_}"; z="/"; dst="${dst//_/$z}"
cp -vf $confdir/$x etc/network/$dst
done

Loading…
Cancel
Save