summaryrefslogtreecommitdiff
path: root/functions.sh
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2016-07-04 17:34:58 +0800
committerIru Cai <mytbk920423@gmail.com>2016-08-02 12:16:59 +0800
commit46a58cb3730000fec238a698ea169cc4d0aa05d7 (patch)
tree67457c14508dbd35d2d125e1abc068c7a6286bca /functions.sh
parente9066c5c8c676c3ef6028ed4e16b2e723caa1a58 (diff)
downloadliveusb-builder-46a58cb3730000fec238a698ea169cc4d0aa05d7.tar.xz
main buildlive scripts
Diffstat (limited to 'functions.sh')
-rw-r--r--functions.sh17
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"
+}