move to root

This commit is contained in:
Mario Fetka
2012-01-14 09:49:13 +01:00
parent d884fb4a6d
commit 3d31a894be
482 changed files with 0 additions and 23459 deletions

View 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

View 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

View 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
}

View 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