-
Notifications
You must be signed in to change notification settings - Fork 1
/
multiboot.sh
executable file
·60 lines (57 loc) · 1.44 KB
/
multiboot.sh
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env bash
#===============================================================================
#
# FILE: multiboot.sh
#
# USAGE: sudo ./multiboot.sh
#
# DESCRIPTION: This script creates a multiboot usb disk with multiple os's.
#
# OPTIONS: none yet
# REQUIREMENTS: grub2, wget, linux, dosfstools
# BUGS: probably a bunch, have not discovered yet.
# NOTES: Tested on gentoo with gentoo's version of grub2.
# If your distro automounts usb, this script will fail.
# AUTHOR: [email protected]
# ORGANIZATION: pissedoffadmins.com
# CREATED: 15 April 2014
# REVISION: 40
#===============================================================================
source core/selection.shlib
source core/main.shlib
if [ $# -ge 1 ];
then
case "$1" in
'debug'|'-d')
clear
main
selection
grub_disk_debug
grub_header
for CMD in "${OS_INST[@]}"
do
$(echo ${CMD})
done
cleanup_debug
;;
'install'|'-i')
clear
main
selection
disk_detect
disk_action
grub_disk
grub_header
for CMD in "${OS_INST[@]}"
do
$(echo ${CMD})
done
cleanup
;;
esac
else
version
description
usage
exit 1
fi