diff options
author | Nico Dietrich | 2006-03-24 01:12:44 +0100 |
---|---|---|
committer | Nico Dietrich | 2006-03-24 01:12:44 +0100 |
commit | 61b717028a677e7ecce29553b76c0798d3b15005 (patch) | |
tree | 18361325973619389342fe4e9e4894a3e7a30694 /initrd | |
parent | adding id 83 partitions to fstab, changes for temp directory (diff) | |
download | core-61b717028a677e7ecce29553b76c0798d3b15005.tar.gz core-61b717028a677e7ecce29553b76c0798d3b15005.tar.xz core-61b717028a677e7ecce29553b76c0798d3b15005.zip |
small fixes
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@124 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd')
-rw-r--r-- | initrd/distro-specs/ubuntu/functions-5.10 | 9 |
1 files changed, 7 insertions, 2 deletions
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 } |