From: Harald Hoyer Date: Wed, 9 Sep 2009 16:01:14 +0000 (+0200) Subject: dracut-functions: make inst() mkinitrd compatible X-Git-Tag: 002~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f165864f0978b6566ac5a1f70292f68420c18425;p=thirdparty%2Fdracut.git dracut-functions: make inst() mkinitrd compatible --- diff --git a/dracut-functions b/dracut-functions index 6009ace0e..acc9da909 100755 --- a/dracut-functions +++ b/dracut-functions @@ -260,10 +260,11 @@ inst_rules() { # general purpose installation function # Same args as above. inst() { - if (($# != 1 && $# != 2 )); then - derror "inst only takes 1 or 2 arguments" + if (($# != 1 && $# != 2 && $# != 3 )); then + derror "inst only takes 1 or 2 or 3 arguments" exit 1 fi + [[ "$2" = "$initdir" ]] && set $1 $3 for x in inst_symlink inst_script inst_binary inst_simple; do $x "$@" && return 0 done