From 61b717028a677e7ecce29553b76c0798d3b15005 Mon Sep 17 00:00:00 2001 From: Nico Dietrich Date: Fri, 24 Mar 2006 00:12:44 +0000 Subject: small fixes git-svn-id: http://svn.openslx.org/svn/openslx/ld4@124 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/distro-specs/ubuntu/functions-5.10 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'initrd') diff --git a/initrd/distro-specs/ubuntu/functions-5.10 b/initrd/distro-specs/ubuntu/functions-5.10 index 1fb6cb0d..14d7e236 100644 --- a/initrd/distro-specs/ubuntu/functions-5.10 +++ b/initrd/distro-specs/ubuntu/functions-5.10 @@ -63,8 +63,13 @@ local stop="$3" # passed via configuration for i in rc3.d/K$stop$script rc5.d/K$stop$script \ rc3.d/S$start$script rc5.d/S$start$script ; do - ln -sf ../$script /mnt/etc/init.d/$i - echo "Linked $script" + if ! [ -f ../$script ]; then + echo "Target `pwd`../$script does not exist. Skipping links" + break + else + ln -sf ../$script /mnt/etc/init.d/$i + echo "Linked $script" + fi done } -- cgit v1.2.3-55-g7522