summaryrefslogtreecommitdiffstats
path: root/upslak.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2019-09-08 20:47:30 +0200
committer Eric Hameleers <alien@slackware.com>2019-09-08 20:47:30 +0200
commit42e29623ed3a1f33cb98c1e084a5133042345ea2 (patch)
treef5dbf15eb707199367e20b99950f27c6b44bf4d9 /upslak.sh
parent4bc87ea3ac44a4cd4142520557eb75e21092456b (diff)
downloadliveslak-42e29623ed3a1f33cb98c1e084a5133042345ea2.tar.gz
liveslak-42e29623ed3a1f33cb98c1e084a5133042345ea2.tar.xz
upslak.sh: fix path determination for kernel and modules
Thanks to 0XBF @linuxquestions.org for debugging.
Diffstat (limited to '')
-rw-r--r--upslak.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/upslak.sh b/upslak.sh
index a3e64ee..92f549b 100644
--- a/upslak.sh
+++ b/upslak.sh
@@ -482,7 +482,7 @@ getpath_kernelimg () {
local MYDATA="${*}"
[ -z "${MYDATA}" ] && echo ""
- if [ -n "$(file \"${MYDATA}\" |grep -E 'x86 boot (executable|sector)')" ]; then
+ if [ -n "$(file "${MYDATA}" |grep -E 'x86 boot (executable|sector)')" ]; then
# We have a kernel image:
echo "${MYDATA}"
else
@@ -579,15 +579,15 @@ while [ ! -z "$1" ]; do
exit
;;
-i|--init)
- LIVEINIT="$(cd $(dirname $2); pwd)/$(basename $2)"
+ LIVEINIT="$(cd "$(dirname "$2")"; pwd)/$(basename "$2")"
shift 2
;;
-k|--kernel)
- KERNEL="$2"
+ KERNEL="$(cd "$(dirname "$2")"; pwd)/$(basename "$2")"
shift 2
;;
-m|--kmoddir)
- KMODDIR="$2"
+ KMODDIR="$(cd "$(dirname "$2")"; pwd)/$(basename "$2")"
shift 2
;;
-n|--netsupport)