malfs mekanizma guncelleme
This commit is contained in:
parent
d18e75ed5b
commit
17c32174fb
|
@ -0,0 +1,63 @@
|
|||
#!/bin/sh
|
||||
########################################################################
|
||||
# Begin setclock
|
||||
#
|
||||
# Description : Setting Linux Clock
|
||||
#
|
||||
# Authors : Gerard Beekmans - gerard@linuxfromscratch.org
|
||||
# DJ Lucas - dj@linuxfromscratch.org
|
||||
# Update : Bruce Dubbs - bdubbs@linuxfromscratch.org
|
||||
#
|
||||
# Version : LFS 7.0
|
||||
#
|
||||
########################################################################
|
||||
|
||||
### BEGIN INIT INFO
|
||||
# Provides:
|
||||
# Required-Start:
|
||||
# Should-Start: modules
|
||||
# Required-Stop:
|
||||
# Should-Stop: $syslog
|
||||
# Default-Start: S
|
||||
# Default-Stop:
|
||||
# Short-Description: Stores and restores time from the hardware clock
|
||||
# Description: On boot, system time is obtained from hwclock. The
|
||||
# hardware clock can also be set on shutdown.
|
||||
# X-LFS-Provided-By: LFS BLFS
|
||||
### END INIT INFO
|
||||
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
[ -r /etc/sysconfig/clock ] && . /etc/sysconfig/clock
|
||||
|
||||
|
||||
case "${UTC}" in
|
||||
yes|true|1)
|
||||
CLOCKPARAMS="${CLOCKPARAMS} --utc"
|
||||
;;
|
||||
|
||||
no|false|0)
|
||||
CLOCKPARAMS="${CLOCKPARAMS} --localtime"
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
case ${1} in
|
||||
start)
|
||||
hwclock --hctosys ${CLOCKPARAMS} >/dev/null
|
||||
;;
|
||||
|
||||
stop)
|
||||
log_info_msg "Setting hardware clock..."
|
||||
hwclock --systohc ${CLOCKPARAMS} >/dev/null
|
||||
evaluate_retval
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: ${0} {start|stop}"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
exit 0
|
|
@ -0,0 +1,12 @@
|
|||
# /etc/exports - exports(5) - directories exported to NFS clients
|
||||
#
|
||||
# Example for NFSv2 and NFSv3:
|
||||
# /srv/home hostname1(rw,sync) hostname2(ro,sync)
|
||||
# Example for NFSv4:
|
||||
# /srv/nfs4 hostname1(rw,sync,fsid=0)
|
||||
# /srv/nfs4/home hostname1(rw,sync,nohide)
|
||||
# Using Kerberos and integrity checking:
|
||||
# /srv/nfs4 *(rw,sync,sec=krb5i,fsid=0)
|
||||
# /srv/nfs4/home *(rw,sync,sec=krb5i,nohide)
|
||||
#
|
||||
# Use `exportfs -arv` to reload.
|
|
@ -7,7 +7,8 @@ name=nfs-utils
|
|||
version=1.3.3
|
||||
release=1
|
||||
|
||||
source=(http://downloads.sourceforge.net/nfs/$name-$version.tar.bz2)
|
||||
source=(http://downloads.sourceforge.net/nfs/$name-$version.tar.bz2
|
||||
exports)
|
||||
run=(rpcbind)
|
||||
|
||||
build() {
|
||||
|
@ -29,7 +30,7 @@ cd $name-$version
|
|||
make
|
||||
mkdir $PKG/sbin
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
install -m 644 $SRC/exports $PKG/etc/
|
||||
# Services
|
||||
cd ../$scripts-$scriptsversion
|
||||
make DESTDIR=$PKG install-nfs-server
|
||||
|
|
Loading…
Reference in New Issue