0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-12 04:38:06 +00:00
W. Michael Petullo acc42e9451 krb5: allow installing without kadmind
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2019-04-11 21:13:54 -04:00

20 lines
364 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2009 OpenWrt.org
START=60
start() {
mkdir -p /var/tmp
mkdir -p /etc/krb5kdc
[ -f /etc/krb5kdc/principal ] || ( echo; echo ) | kdb5_util create -s
/usr/sbin/krb5kdc
[ -x /usr/sbin/kadmind ] && /usr/sbin/kadmind
}
stop() {
killall krb5kdc 2> /dev/null
[ -x /usr/sbin/kadmind ] && killall kadmind 2> /dev/null
}