diff --git a/rootfs/etc/rc.d/init.d/setclock b/rootfs/etc/rc.d/init.d/setclock new file mode 100755 index 000000000..15463de94 --- /dev/null +++ b/rootfs/etc/rc.d/init.d/setclock @@ -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 \ No newline at end of file diff --git a/talimatname/temel-ek/nfs-utils/exports b/talimatname/temel-ek/nfs-utils/exports new file mode 100755 index 000000000..59dfa2e7c --- /dev/null +++ b/talimatname/temel-ek/nfs-utils/exports @@ -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. diff --git a/talimatname/temel-ek/nfs-utils/talimat b/talimatname/temel-ek/nfs-utils/talimat index 9fedda372..e446bc025 100644 --- a/talimatname/temel-ek/nfs-utils/talimat +++ b/talimatname/temel-ek/nfs-utils/talimat @@ -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