diff options
author | Iru Cai <mytbk920423@gmail.com> | 2016-07-05 20:34:43 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2016-08-02 12:17:03 +0800 |
commit | 7be29a553f8bc94df3a6d67c497faa2371913dce (patch) | |
tree | 7db73a26d289973e944810cc2c1bce76b96c0654 /buildlive | |
parent | 46a58cb3730000fec238a698ea169cc4d0aa05d7 (diff) | |
download | liveusb-builder-7be29a553f8bc94df3a6d67c497faa2371913dce.tar.xz |
install() -> install_live()
Diffstat (limited to 'buildlive')
-rwxr-xr-x | buildlive | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 |