Move to root

This commit is contained in:
Mario Fetka
2012-01-14 09:45:05 +01:00
parent d884fb4a6d
commit 5253d3ea35
482 changed files with 0 additions and 578 deletions

View File

@@ -0,0 +1,39 @@
# add novfs registry entries
einfo "add novfsd registry"
# set sane defaults
EnableSLP=1
EnableNMAS=1
# check slp Support
if [ -f /etc/opt/novell/ncl/protocol.conf ]; then
cat /etc/opt/novell/ncl/protocol.conf |grep Name_Resolution_Providers 2>&1 >/dev/null
if [ $? -eq 0 ]; then
cat /etc/opt/novell/ncl/protocol.conf |grep SLP 2>&1 >/dev/null
if [ $? -ne 0 ]; then
EnableSLP=0
fi
fi
fi
# check nmas Support
if [ -f /etc/opt/novell/ncl/login.conf ]; then
cat /etc/opt/novell/ncl/login.conf |grep "NMAS_Authentication=false" 2>&1 >/dev/null
if [ $? -eq 0 ]; then
EnableNMAS=0
fi
fi
# enable xtier slp name resolution
if [ $EnableSLP -eq 1 ]; then
einfo "enable SLP"
/opt/novell/xtier/bin/regutil -v "\client\policies\network\ip\address resolution providers\configured" "9" REG_SZ "{A18C57F8-17DA-11d1-8FFF-00A0C925D248}"
eend $?
fi
# enable xtier NMAS support
if [ $EnableNMAS -eq 1 ]; then
einfo "enable NMAS"
/opt/novell/xtier/bin/regutil -v "\Client\Policies" "Default Authentication Provider" REG_SZ "{FCB72681-D373-11d3-BC08-00A0C9EA53EF}"
eend $?
fi

View File

@@ -0,0 +1,69 @@
#!/sbin/runscript
NOVFS_MOUNT_PATH=/var/opt/novell/nclmnt
export XTIER_CODE_PAGE=`locale charmap`
export NCPL_DO_NOT_OVERWRITE_OPENLOG=1
depend() {
need net
before xdm
after novell-xregd
}
#checkconfig() {
# if [ ! -e ${NDSD_CONFIGFILE} ] ; then
# eerror "Novell eDirectory server has not been configured."
# return 1
# fi
#}
start() {
export XTIER_CODE_PAGE=`locale charmap`
export NCPL_DO_NOT_OVERWRITE_OPENLOG=1
ebegin "Loading novell novfs kernel module"
#Try and start novfs
modprobe novfs
lsmod |grep novfs 2>&1 >/dev/null
eend $?
ebegin "Mounting novell novfs"
#Mount our filesystem
mount -t novfs novfs $NOVFS_MOUNT_PATH
eend $?
EnableNMAS=1
if [ -f /etc/opt/novell/ncl/login.conf ]; then
cat /etc/opt/novell/ncl/login.conf |grep "NMAS_Authentication=false" 2>&1 >/dev/null
if [ $? -eq 0 ]; then
EnableNMAS=0
fi
fi
if [ $EnableNMAS -eq 0 ]; then
ebegin "Starting novell novfs daemon with NMAS-Authentication"
start-stop-daemon --start --quiet --exec /opt/novell/ncl/bin/novfsd --pidfile /var/opt/novell/run/novfsd.pid -- -m
else
ebegin "Starting Novell novfs daemon"
start-stop-daemon --start --quiet --exec /opt/novell/ncl/bin/novfsd --pidfile /var/opt/novell/run/novfsd.pid
fi
eend $?
}
stop() {
ebegin "Stopping Novell novfs daemon"
start-stop-daemon --stop --signal 9 --quiet --pidfile /var/opt/novell/run/novfsd.pid
eend $?
ebegin "unMounting novell novfs"
umount -l $NOVFS_MOUNT_PATH 2>/dev/null
#Check to see if mount point is still mounted
mount | grep novfs 2>&1 > /dev/null
eend $?
ebegin "unLoading novell novfs kernel module"
rmmod novfs
eend $?
}
#restart() {
# (Commands necessary to restart the service)
#}