Browse Source

keep compat arguments for "inst"

master
Harald Hoyer 16 years ago
parent
commit
59dc373677
  1. 9
      dracut-functions

9
dracut-functions

@ -153,12 +153,17 @@ inst_rules() { @@ -153,12 +153,17 @@ inst_rules() {
# general purpose installation function
# Same args as above.
inst() {
if (($# != 1 && $# != 2)); then
if (($# != 1 && $# != 2 && $# != 3)); then
echo "usage: inst <file> <root> [<destination file>]"
return 1
fi
local dst
[ $# = 3 ] && dst=$3
if [ $# = 2 ]; then
[ -d "$2" ] || dst=$2
fi
for x in inst_symlink inst_script inst_binary inst_simple; do
$x "$@" && return 0
$x $1 $dst && return 0
done
return 1
}

Loading…
Cancel
Save