diff options
author | Iru Cai <mytbk920423@gmail.com> | 2016-07-04 17:34:58 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2016-08-02 12:16:59 +0800 |
commit | 46a58cb3730000fec238a698ea169cc4d0aa05d7 (patch) | |
tree | 67457c14508dbd35d2d125e1abc068c7a6286bca /functions.sh | |
parent | e9066c5c8c676c3ef6028ed4e16b2e723caa1a58 (diff) | |
download | liveusb-builder-46a58cb3730000fec238a698ea169cc4d0aa05d7.tar.xz |
main buildlive scripts
Diffstat (limited to 'functions.sh')
-rw-r--r-- | functions.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/functions.sh b/functions.sh new file mode 100644 index 0000000..d4ddfc7 --- /dev/null +++ b/functions.sh @@ -0,0 +1,17 @@ +process_distro() { + source "distro/$1/install.sh" + ISOFILE="$(basename $ISOURL)" + ISOMNT="/media/$ISOFILE" +} + +mount_iso() { + udevil mount "isofiles/$ISOFILE" "$ISOMNT" +} + +umount_iso() { + udevil umount "$ISOMNT" +} + +getuuid() { + lsblk -n -o UUID "$1" +} |