]> git.wh0rd.org Git - home.git/commitdiff
installkernel: update paths
authorMike Frysinger <vapier@gentoo.org>
Thu, 16 Jan 2014 17:10:30 +0000 (12:10 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 16 Jan 2014 17:10:30 +0000 (12:10 -0500)
.bin/installkernel

index a8a448fadca092694b20ad1772606ed24a340df9..2a598d529eb70f11d90298467fc798072539ca6a 100755 (executable)
@@ -1,21 +1,22 @@
 #!/bin/bash
-# 2.6.35.4-default arch/s390/boot/image System.map Kerntypes /boot
+# 2.6.35.4-default arch/s390/boot/image System.map /boot
 
 mmv() { [[ -e $1 ]] && mv "$1" "$2" ; }
 
 ver=$1
 img=$2
 map=$3
-# $4 == ??
-dir=$5
+dir=$4
+
+mount "${dir}" >&/dev/null
 
 case ${img} in
 */blackfin/*)
-       mmv $4/uImage $4/uImage.old
-       mmv $4/${map} $4/${map}.old
+       mmv ${dir}/uImage ${dir}/uImage.old
+       mmv ${dir}/${map} ${dir}/${map}.old
 
-       cp ${img} $4/uImage
-       cp ${map} $4/${map}
+       cp ${img} ${dir}/uImage
+       cp ${map} ${dir}/${map}
        exit 0
        ;;