summaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-10 21:43:07 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-10 21:43:07 +0100
commit5211a7173d780490e6f4410886e73e5a1e64e72d (patch)
tree277c711a590ef0b00113f2f8a6df0d67412ee8c6 /src/frontend
parent699cb3baa9ad52bd242eca902e9807d8f2c41b23 (diff)
begin the spliting of vasile
Diffstat (limited to 'src/frontend')
-rwxr-xr-xsrc/frontend/cli/vasile48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/frontend/cli/vasile b/src/frontend/cli/vasile
new file mode 100755
index 0000000..d64b617
--- /dev/null
+++ b/src/frontend/cli/vasile
@@ -0,0 +1,48 @@
+#!/usr/bin/env bash
+# Say Hello to Vasile, a modular script to build Redcore Linux packages && ISO images using a clean squashfs + overlayfs chroot
+# Main author : Ghiunhan Mamut (aka V3n3RiX)
+# Dependencies : kernel built with squashfs + overlayfs + loopback support && sys-fs/grub:2 && sys-fs/squashfs-tools && dev-libs/libisoburn && sys-fs/mtools
+#
+
+# Import our variables and functions
+
+source /usr/lib/vasile/libvasile
+
+# Vasile need root privileges and a proper kernel to run
+# Also, running it in live mode is a really bad idea
+
+checkiflive
+kernelconfig
+
+
+case $1 in
+ --makepkg)
+ makepkg
+ ;;
+ --makeiso)
+ makeiso
+ ;;
+ --resetmode)
+ resetmode
+ ;;
+ --binmode)
+ binmode
+ ;;
+ --mixedmode)
+ mixedmode
+ ;;
+ --srcmode)
+ srcmode
+ ;;
+ --dkms)
+ dkmsmod
+ ;;
+ --help)
+ showhelp
+ ;;
+ *)
+ eerror "error: no operation specified, use --help for help"
+ ;;
+esac
+
+exit 0