updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / multicd.sh / plugins.patch
blobea1bc4c5a4a464359a01ad0347055075d0f268b2
1 diff -Naur plugins/finnix.sh plugins-new/finnix.sh
2 --- plugins/finnix.sh 1970-01-01 01:00:00.000000000 +0100
3 +++ plugins-new/finnix.sh 2010-03-12 17:55:47.952628480 +0100
4 @@ -0,0 +1,99 @@
5 +#!/bin/sh
6 +set -e
7 +#Finnix plugin for multicd.sh
8 +#version 1.0
9 +#Copyright (c) 2010 Rorschach
11 +#Permission is hereby granted, free of charge, to any person obtaining a copy
12 +#of this software and associated documentation files (the "Software"), to deal
13 +#in the Software without restriction, including without limitation the rights
14 +#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 +#copies of the Software, and to permit persons to whom the Software is
16 +#furnished to do so, subject to the following conditions:
18 +#The above copyright notice and this permission notice shall be included in
19 +#all copies or substantial portions of the Software.
21 +#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 +#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 +#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 +#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 +#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 +#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27 +#THE SOFTWARE.
28 +if [ $1 = scan ];then
29 + if [ -f finnix.iso ];then
30 + echo "Finnix"
31 + fi
32 +elif [ $1 = copy ];then
33 + if [ -f finnix.iso ];then
34 + echo "Copying Finnix..."
35 + if [ ! -d finnix ];then
36 + mkdir finnix
37 + fi
38 + if grep -q "`pwd`/finnix" /etc/mtab ; then
39 + umount finnix
40 + fi
41 + mount -o loop finnix.iso finnix/
42 + # Copies compressed filesystem
43 + cp -r finnix/FINNIX multicd-working/
44 + # Copies kernel, and initramdisk
45 + mkdir multicd-working/boot/finnix
46 + cp finnix/isolinux/linux multicd-working/boot/finnix/
47 + cp finnix/isolinux/linux64 multicd-working/boot/finnix/
48 + cp finnix/isolinux/minirt multicd-working/boot/finnix/
49 + # Copies memdisk and Smart Boot Manager
50 + cp finnix/isolinux/memdisk multicd-working/boot/finnix/
51 + cp finnix/isolinux/sbm.imz multicd-working/boot/finnix/
52 + umount finnix
53 + rmdir finnix
54 + fi
55 +elif [ $1 = writecfg ];then
56 +if [ -f finnix.iso ];then
57 +cat >> multicd-working/boot/isolinux/isolinux.cfg << "EOF"
58 +label Finnix
59 + MENU LABEL ^Finnix (x86)
60 + kernel /boot/finnix/linux
61 + append finnixfile=/FINNIX/FINNIX initrd=/boot/finnix/minirt apm=power-off vga=791 quiet
63 +label Finnix64
64 + MENU LABEL Finnix (AMD64)
65 + kernel /boot/finnix/linux64
66 + append finnixfile=/FINNIX/FINNIX initrd=/boot/finnix/minirt apm=power-off vga=791 quiet
68 +label FinnixText
69 + MENU LABEL ^Finnix (x86, textmode)
70 + kernel /boot/finnix/linux
71 + append finnixfile=/FINNIX/FINNIX initrd=/boot/finnix/minirt apm=power-off vga=normal quiet
73 +label FinnixDebug
74 + MENU LABEL ^Finnix (x86, debug mode)
75 + kernel /boot/finnix/linux
76 + append finnixfile=/FINNIX/FINNIX initrd=/boot/finnix/minirt apm=power-off vga=normal debug
78 +label Finnix64Text
79 + MENU LABEL Finnix (AMD64, textmode)
80 + kernel /boot/finnix/linux64
81 + append finnixfile=/FINNIX/FINNIX initrd=/boot/finnix/minirt apm=power-off vga=normal quiet
83 +label Finnix64Debug
84 + MENU LABEL Finnix (AMD64, debug mode)
85 + kernel /boot/finnix/linux64
86 + append finnixfile=/FINNIX/FINNIX initrd=/boot/finnix/minirt apm=power-off vga=normal debug
88 +label FinnixFailsafe
89 + MENU LABEL ^Finnix (failsafe)
90 + kernel /boot/finnix/linux
91 + append finnixfile=/FINNIX/FINNIX initrd=/boot/finnix/minirt vga=normal noapic noacpi pnpbios=off acpi=off nofstab nodma noapm nodhcp nolvm nomouse noeject
93 +label sbm
94 + MENU LABEL Smart Boot Manager
95 + kernel /boot/finnix/memdisk
96 + append initrd=/boot/finnix/sbm.imz
97 +EOF
98 +fi
99 +else
100 + echo "Usage: $0 {scan|copy|writecfg}"
101 + echo "Use only from within multicd.sh or a compatible script!"
102 + echo "Don't use this plugin script on its own!"
104 diff -Naur plugins/gparted.sh plugins-new/gparted.sh
105 --- plugins/gparted.sh 2009-12-24 00:00:59.000000000 +0100
106 +++ plugins-new/gparted.sh 2010-03-12 17:55:47.952628480 +0100
107 @@ -27,6 +27,7 @@
109 elif [ $1 = copy ];then
110 if [ -f gparted.iso ];then
111 + echo "Copying GParted Live..."
112 if [ ! -d gparted ];then
113 mkdir gparted