summaryrefslogtreecommitdiff
path: root/buildlive
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2016-07-05 20:34:43 +0800
committerIru Cai <mytbk920423@gmail.com>2016-08-02 12:17:03 +0800
commit7be29a553f8bc94df3a6d67c497faa2371913dce (patch)
tree7db73a26d289973e944810cc2c1bce76b96c0654 /buildlive
parent46a58cb3730000fec238a698ea169cc4d0aa05d7 (diff)
downloadliveusb-builder-7be29a553f8bc94df3a6d67c497faa2371913dce.tar.xz
install() -> install_live()
Diffstat (limited to 'buildlive')
-rwxr-xr-xbuildlive13
1 files changed, 11 insertions, 2 deletions
diff --git a/buildlive b/buildlive
index 757c51a..6a1d578 100755
--- a/buildlive
+++ b/buildlive
@@ -5,6 +5,8 @@ set -e
DISTROLIST=()
ROOTPATH=
DEVNAME=
+KERNELDIR=
+DATADIR=
. functions.sh
@@ -25,7 +27,14 @@ do
case "$1" in
--root=*)
ROOTPATH=${1/--root=}
- msg "Files will be copy to $ROOTPATH"
+ if [ -d "$ROOTPATH" ]; then
+ KERNELDIR="$ROOTPATH/liveusb-kernel"
+ DATADIR="$ROOTPATH/liveusb-data"
+ install -d "$KERNELDIR" "$DATADIR"
+ msg "Files will be copy to $ROOTPATH"
+ else
+ errmsg "Invalid root path $ROOTPATH"
+ fi
;;
--dev=*)
DEVNAME=${1/--dev=}
@@ -64,6 +73,6 @@ do
exit 1
fi
- install
+ install_live
done