mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-08 09:27:45 +08:00
Package installation
This commit is contained in:
parent
6478fa4412
commit
d650e8d46f
@ -28,7 +28,7 @@ function checkNMI {
|
|||||||
|
|
||||||
finish() {
|
finish() {
|
||||||
|
|
||||||
echo "Shutting down agent.." > /dev/ttyS0
|
echo "Shutting down vDSM Guest Agent.." > /dev/ttyS0
|
||||||
exit
|
exit
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -54,12 +54,12 @@ if [ "$first_run" = true ]; then
|
|||||||
for filename in /usr/local/packages/*.spk; do
|
for filename in /usr/local/packages/*.spk; do
|
||||||
if [ -f "$filename" ]; then
|
if [ -f "$filename" ]; then
|
||||||
|
|
||||||
/usr/syno/bin/synopkg install "$filename" > /dev/null
|
/usr/syno/bin/synopkg install "$filename" > /dev/ttyS0
|
||||||
|
|
||||||
BASE=$(basename "$filename" .spk)
|
BASE=$(basename "$filename" .spk)
|
||||||
BASE="${BASE%%-*}"
|
BASE="${BASE%%-*}"
|
||||||
|
|
||||||
/usr/syno/bin/synopkg start "$BASE" > /dev/null
|
/usr/syno/bin/synopkg start "$BASE" > /dev/ttyS0
|
||||||
|
|
||||||
rm "$filename"
|
rm "$filename"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user