summaryrefslogtreecommitdiff
path: root/src/frontend/cli/vasile.sh
blob: 5f3f8d2ce9dae25b5ab36d8a76a89c86c24d195a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/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/f_import.sh

# Vasile need root privileges and a proper kernel to run
# Also, running it in live mode is a really bad idea

checkiflive
checkkerncfg

case $1 in
	--makepkg)
		makepkg
		;;
	--makeiso)
		makeiso
		;;
	--reset)
		reset
		;;
	--setup)
		setup
		;;
	--dkms)
		makedkms
		;;
	--help)
		showhelp
		;;
	*)
		eerror "error: no operation specified, use --help for help"
		;;
esac

exit 0