You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
308 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2009 OpenWrt.org
  3. START=60
  4. start() {
  5. mkdir -p /var/tmp
  6. mkdir -p /etc/krb5kdc
  7. [ -f /etc/krb5kdc/principal ] || ( echo; echo ) | kdb5_util create -s
  8. /usr/sbin/krb5kdc
  9. /usr/sbin/kadmind
  10. }
  11. stop() {
  12. killall krb5kdc 2> /dev/null
  13. killall kadmind 2> /dev/null
  14. }