From: Harald Hoyer Date: Fri, 29 Jun 2012 10:04:30 +0000 (+0200) Subject: dracut-functions.sh: grep for "--relative" for the ln_r() check X-Git-Tag: 020~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7224913d1663f1a9fb0aba59e8805e873d69242a;p=thirdparty%2Fdracut.git dracut-functions.sh: grep for "--relative" for the ln_r() check --- diff --git a/dracut-functions.sh b/dracut-functions.sh index 696f64715..33de5a23b 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -193,7 +193,7 @@ convert_abs_rel() { echo "$__newpath" } -if strstr "$(ln --help)" "relative"; then +if strstr "$(ln --help)" "--relative"; then ln_r() { ln -sfnr "${initdir}/$1" "${initdir}/$2" }