forked from jonpanozzo/OpenELEC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOpenELEC.plg
executable file
·128 lines (97 loc) · 3.7 KB
/
OpenELEC.plg
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?xml version='1.0' standalone='yes'?>
<!-- PLUGIN DEFINITIONS -->
<!DOCTYPE PLUGIN [
<!ENTITY name "OpenELEC">
<!ENTITY author "piotrasd">
<!ENTITY version "2015.03.30">
<!ENTITY pluginURL "https://raw.githubusercontent.com/&author;/&name;/master/&name;.plg">
<!ENTITY plugin "/boot/config/plugins/&name;">
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
]>
<PLUGIN name="&name;"
author="&author;"
version="&version;"
pluginURL="&pluginURL;"
>
<CHANGES>
###2014-12-07
- Eric: Removed red status text when OpenELEC is stopped
- Eric: Moved change log in to PLG changes section
###2014-11-12
- Eric: Fixed persisting mac address, readonly, machine type and bridge values better
- Eric: Fixed readonly xml syntax
- Eric: Fixed progress display when a libvirt error occurs
- Eric: Padded mac address digits with 0 when needed
###2014-11-11
- Eric: Whatever settings the user selects (GPU/Audio/USB devices) should remain the default for subsequent VM starts.
###2014-11-05
- Eric: Added check to make sure libvirt service is running
- Eric: New Advanced Options: CPU, Memory, and Machine Type
- Eric: Removed 'Other Devices' Advanced Option for now
- Eric: Cleaned up XML template
###2014-10-24a
- Eric: Added Other Devices for PCI passthrough.
- Eric: Hid Other Devices and Readonly options under Show Advanced Options.
###2014-10-24
- Eric: Added 'None' option for audio device, updated xml replacement code/structure
###2014-10-23
- Eric: cleanup and updated to work in dynamix
- Eric: hide all usb hub devices instead of using a name blacklist
###2014-10-22
- Eric: removed mac address input
###2014-10-21
- Eric: refactored a bunch of device detection code
- Eric: handled cases for empty lists of pci/usb devices
- Eric: now at least 1 video device is required otherwise show error about iommu support
###2014-10-20a
- Eric: automatically add pcie_acs_override to syslinux.cfg if missing
###2014-10-20
- Eric: Fixed bug with write_display in OpenELEC-submit.php
###2014-10-19
- Eric: optimized vfio-pci binding/unbinding
- Eric: better reporting and logging upon vm startup
###2014-10-16b
- Eric: minor tweaks to xml to bump version again
###2014-10-16a
- Eric: hide empty usb devices
- Eric: better wait code for shutdown/destroy
- Eric: fixed xml syntax errors
###2014-10-16
- Eric: improved styling
- Eric: added readonly option
- Eric: better status reporting if the VM is downloaded, running or stopped
- Eric: PCIE ACS check
- Eric: download status reports every 3 sec instead of 10
- Eric: bump version up to 2014.10.16
###2014-10-15a
- Eric: Removed network code block and added more safety checks for disks_mounted event script
###2014-10-15
- Eric: Lots of bug fixes, cleanup, and move to GitHub.
###2014-10-07
- Updating naming convention to OpenELEC.
###2014-10-03
- Updated webGui page to only display stop/destroy buttons if the VM is running.
###2014-10-01
- PLG to wait for network to be ready as a temporary work around to survive reboots. Will be changing this in an upcoming revision to not be necessary.
</CHANGES>
<FILE Name="&plugin;/&version;.tar.gz">
<URL>https://github.com/&author;/&name;/archive/&version;.tar.gz</URL>
</FILE>
<FILE Run="/bin/bash">
<INLINE>
if [ ! -d &emhttp; ]; then
mkdir -p &emhttp;
fi
tar -zxf &plugin;/&version;.tar.gz --strip=1 -C &emhttp;/
</INLINE>
</FILE>
<FILE Name="&emhttp;/event/disks_mounted" Run="/bin/bash"></FILE>
<!-- PLUGIN REMOVAL SCRIPT -->
<FILE Run="/bin/bash" Method="remove">
<INLINE>
rm -r /mnt/cache/.vms/kvm/&name;
rm -r /mnt/cache/.apps/&name;
rm -r /usr/local/emhttp/plugins/&name;
</INLINE>
</FILE>
</PLUGIN>