mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-09 18:07:50 +08:00
Package info
This commit is contained in:
parent
7c180740b7
commit
5d5dfb5134
@ -47,12 +47,14 @@ if [ "$first_run" = true ]; then
|
||||
for filename in /usr/local/packages/*.spk; do
|
||||
if [ -f "$filename" ]; then
|
||||
|
||||
/usr/syno/bin/synopkg install "$filename" > /dev/ttyS0
|
||||
|
||||
BASE=$(basename "$filename" .spk)
|
||||
BASE="${BASE%%-*}"
|
||||
|
||||
/usr/syno/bin/synopkg start "$BASE" > /dev/ttyS0
|
||||
echo "Installing package ${BASE}.." > /dev/ttyS0
|
||||
/usr/syno/bin/synopkg install "$filename" > /dev/null
|
||||
|
||||
echo "Starting package ${BASE}.." > /dev/ttyS0
|
||||
/usr/syno/bin/synopkg start "$BASE" > /dev/null
|
||||
|
||||
rm "$filename"
|
||||
|
||||
@ -60,6 +62,9 @@ if [ "$first_run" = true ]; then
|
||||
done
|
||||
else
|
||||
|
||||
# TODO: Auto-update agent
|
||||
echo "Checking for updates.." > /dev/ttyS0
|
||||
|
||||
sleep 5
|
||||
|
||||
fi
|
||||
@ -70,8 +75,6 @@ echo "-------------------------------------------" > /dev/ttyS0
|
||||
echo " You can now login to DSM at port 5000 " > /dev/ttyS0
|
||||
echo "-------------------------------------------" > /dev/ttyS0
|
||||
|
||||
# TODO: Auto-update agent
|
||||
|
||||
# Wait for NMI interrupt as a shutdown signal
|
||||
|
||||
while true; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user