move to root
This commit is contained in:
11
sys-auth/CASA/files/installcasa
Normal file
11
sys-auth/CASA/files/installcasa
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
rc-update del micasad
|
||||
rc-update add micasad default
|
||||
/usr/sbin/casacfgpam
|
||||
if [ $? != 0 ]; then
|
||||
exit $?
|
||||
else
|
||||
/etc/init.d/micasad restart
|
||||
exit 0
|
||||
fi
|
||||
8
sys-auth/CASA/files/iscasaconfiged
Normal file
8
sys-auth/CASA/files/iscasaconfiged
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
PAM=`find /etc/pam.d -exec grep -i casa \{\} \;`
|
||||
if [ "$PAM" != "" ]; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
20
sys-auth/CASA/files/micasad.cmake
Normal file
20
sys-auth/CASA/files/micasad.cmake
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2007 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting miCASA daemon"
|
||||
eval start-stop-daemon --start --quiet --exec @SBIN_INSTALL_DIR@/micasad --pidfile /var/run/micasad.pid
|
||||
eend 0
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping miCASA daemon"
|
||||
start-stop-daemon --stop --quiet --pidfile /var/run/micasad.pid
|
||||
eend 0
|
||||
}
|
||||
11
sys-auth/CASA/files/uninstallcasa
Normal file
11
sys-auth/CASA/files/uninstallcasa
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
/etc/init.d/micasad stop 2>&1 > /dev/null
|
||||
rc-update del micasad
|
||||
/usr/sbin/casaucfgpam
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
exit $?
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
Reference in New Issue
Block a user