From 6e3bc94f2d9a8f5823aeac9bce5418caf2a1d2b8 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Sat, 12 May 2007 17:10:00 +0000 Subject: - adjusted all hooks for new modprobe path - added compatibility symlink /bin/modprobe - 0.5.14 release git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@206 880c04e9-e011-0410-abf7-b926e227c9cd --- functions | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'functions') diff --git a/functions b/functions index 7b421d2..abe1cad 100644 --- a/functions +++ b/functions @@ -79,6 +79,7 @@ add_device () fi } +# what the hell does this do? add_symlink () { local fil dest dir @@ -95,6 +96,16 @@ add_symlink () #fail quietly } +add_symlink2 () +{ + add_dir $(dirname ${1}) + add_dir $(dirname ${2}) + if ! grep -q "slink ${1} " "${FILELIST}" 2>&1 >/dev/null; then + msg " adding link ${1} -> ${2}" + echo "slink ${1} ${2} 777 0 0" >> "${FILELIST}" + fi +} + add_file () { local fil lnk dir dest -- cgit v1.2.3-24-g4f1b