From 68ead79ec59605ac81b5a68d9f4d313b5fcadcf7 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Mon, 28 Mar 2011 16:49:45 +0200 Subject: Some changes for Ubuntu 10.10 ... --- src/initramfs/distro-specs/ubuntu/functions-default | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/initramfs/distro-specs/ubuntu/functions-default') 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 } -- cgit v1.2.3-55-g7522