From: <abe...@us...> - 2012-11-20 19:45:53
|
Revision: 5771 http://astlinux.svn.sourceforge.net/astlinux/?rev=5771&view=rev Author: abelbeck Date: 2012-11-20 19:45:46 +0000 (Tue, 20 Nov 2012) Log Message: ----------- cleanup remaining traces of 'nfsd', never supported in AstLinux 1.x Modified Paths: -------------- branches/1.0/project/astlinux/target_skeleton/stat/etc/rc.conf Added Paths: ----------- branches/1.0/package/nfs-utils/old-nfsd.init Removed Paths: ------------- branches/1.0/project/astlinux/target_skeleton/etc/exports branches/1.0/project/astlinux/target_skeleton/etc/init.d/nfsd branches/1.0/project/astlinux/target_skeleton/etc/runlevels/default/K28nfsd branches/1.0/project/astlinux/target_skeleton/etc/runlevels/default/S23nfsd Copied: branches/1.0/package/nfs-utils/old-nfsd.init (from rev 5770, branches/1.0/project/astlinux/target_skeleton/etc/init.d/nfsd) =================================================================== --- branches/1.0/package/nfs-utils/old-nfsd.init (rev 0) +++ branches/1.0/package/nfs-utils/old-nfsd.init 2012-11-20 19:45:46 UTC (rev 5771) @@ -0,0 +1,68 @@ +#!/bin/sh + +. /etc/rc.conf + +init () { + local NETWORK PREFIX + + eval `ipcalc -n -p $INTIP $INTNM` + + rm -f /tmp/etc/exports + + for i in $NFS_EXPORTS_RO; do + echo "$i $NETWORK/$PREFIX(ro,no_root_squash,sync)" >> /tmp/etc/exports + done + + for i in $NFS_EXPORTS_RW; do + echo "$i $NETWORK/$PREFIX(rw,no_root_squash,sync)" >> /tmp/etc/exports + done +} + +start () { + if [ -f /etc/exports ]; then + portmap + if [ -n "$NFS_CLIENTS" ]; then + NFSD="$NFS_CLIENTS" + else + NFSD=4 + fi + nfsd $NFSD + lockd + mountd + exportfs -a + fi +} + +stop () { + if [ -f /etc/exports ]; then + killall mountd lockd nfsd portmap + rmmod mountd lockd nfsd sunrpc + fi +} + +case $1 in + +start) + start + ;; + +stop) + stop + ;; + +init) + init + start + ;; + +restart) + stop + sleep 2 + start + ;; + +*) + echo "Usage: start|stop|restart" + ;; + +esac Deleted: branches/1.0/project/astlinux/target_skeleton/etc/exports =================================================================== --- branches/1.0/project/astlinux/target_skeleton/etc/exports 2012-11-19 18:26:33 UTC (rev 5770) +++ branches/1.0/project/astlinux/target_skeleton/etc/exports 2012-11-20 19:45:46 UTC (rev 5771) @@ -1 +0,0 @@ -link /tmp/etc/exports \ No newline at end of file Deleted: branches/1.0/project/astlinux/target_skeleton/etc/init.d/nfsd =================================================================== --- branches/1.0/project/astlinux/target_skeleton/etc/init.d/nfsd 2012-11-19 18:26:33 UTC (rev 5770) +++ branches/1.0/project/astlinux/target_skeleton/etc/init.d/nfsd 2012-11-20 19:45:46 UTC (rev 5771) @@ -1,68 +0,0 @@ -#!/bin/sh - -. /etc/rc.conf - -init () { - local NETWORK PREFIX - - eval `ipcalc -n -p $INTIP $INTNM` - - rm -f /tmp/etc/exports - - for i in $NFS_EXPORTS_RO; do - echo "$i $NETWORK/$PREFIX(ro,no_root_squash,sync)" >> /tmp/etc/exports - done - - for i in $NFS_EXPORTS_RW; do - echo "$i $NETWORK/$PREFIX(rw,no_root_squash,sync)" >> /tmp/etc/exports - done -} - -start () { - if [ -f /etc/exports ]; then - portmap - if [ -n "$NFS_CLIENTS" ]; then - NFSD="$NFS_CLIENTS" - else - NFSD=4 - fi - nfsd $NFSD - lockd - mountd - exportfs -a - fi -} - -stop () { - if [ -f /etc/exports ]; then - killall mountd lockd nfsd portmap - rmmod mountd lockd nfsd sunrpc - fi -} - -case $1 in - -start) - start - ;; - -stop) - stop - ;; - -init) - init - start - ;; - -restart) - stop - sleep 2 - start - ;; - -*) - echo "Usage: start|stop|restart" - ;; - -esac Deleted: branches/1.0/project/astlinux/target_skeleton/etc/runlevels/default/K28nfsd =================================================================== --- branches/1.0/project/astlinux/target_skeleton/etc/runlevels/default/K28nfsd 2012-11-19 18:26:33 UTC (rev 5770) +++ branches/1.0/project/astlinux/target_skeleton/etc/runlevels/default/K28nfsd 2012-11-20 19:45:46 UTC (rev 5771) @@ -1 +0,0 @@ -link ../../init.d/nfsd \ No newline at end of file Deleted: branches/1.0/project/astlinux/target_skeleton/etc/runlevels/default/S23nfsd =================================================================== --- branches/1.0/project/astlinux/target_skeleton/etc/runlevels/default/S23nfsd 2012-11-19 18:26:33 UTC (rev 5770) +++ branches/1.0/project/astlinux/target_skeleton/etc/runlevels/default/S23nfsd 2012-11-20 19:45:46 UTC (rev 5771) @@ -1 +0,0 @@ -link ../../init.d/nfsd \ No newline at end of file Modified: branches/1.0/project/astlinux/target_skeleton/stat/etc/rc.conf =================================================================== --- branches/1.0/project/astlinux/target_skeleton/stat/etc/rc.conf 2012-11-19 18:26:33 UTC (rev 5770) +++ branches/1.0/project/astlinux/target_skeleton/stat/etc/rc.conf 2012-11-20 19:45:46 UTC (rev 5771) @@ -939,12 +939,6 @@ #ZABBIX_PROXY_HOSTNAME="" # Unique, case sensitive Proxy name. Make sure the Proxy name is known to the server. #ZABBIX_PROXY_LISTENPORT="10051" # TCP port that zabbix_proxy listens on locally -## NFS Server support (read only exports) -#NFS_EXPORTS_RO="/tftpboot" - -## Read/write -#NFS_EXPORTS_RW="/home" - ## BOOTPFILE ## For diskless clients, the image to use for booting. #BOOTPFILE="/pxelinux.0" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |