diff options
Diffstat (limited to 'src/initramfs/distro-specs/ubuntu/functions-default')
-rw-r--r-- | src/initramfs/distro-specs/ubuntu/functions-default | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/initramfs/distro-specs/ubuntu/functions-default b/src/initramfs/distro-specs/ubuntu/functions-default index 316f8c5c..00c6de02 100644 --- a/src/initramfs/distro-specs/ubuntu/functions-default +++ b/src/initramfs/distro-specs/ubuntu/functions-default @@ -1,5 +1,5 @@ # Copyright (c) 2003..2006 - RZ Uni Freiburg -# Copyright (c) 2006..2010 - OpenSLX GmbH +# Copyright (c) 2006..2011 - OpenSLX GmbH # # This program/file is free software distributed under the GPL version 2. # See http://openslx.org/COPYING @@ -326,8 +326,12 @@ config_nis () { } # name service caching daemon (really existing!?) config_nscd () { - #if [ -f /mnt/etc/init.inactive/nscd.conf ] ; then - # testmkd /mnt/var/cache/nscd - #fi - : +# if upstart compatible + if [ -f /mnt/etc/init.inactive/nscd.conf ] ; then + testmkd /mnt/var/cache/nscd + # otherwise the old method + else + ln -sf /etc/init.d/nscd /mnt/etc/rc2.d/S10nscd + ln -sf /etc/init.d/nscd /mnt/etc/rc3.d/S10nscd + fi } |