29.12.2018, 23:39
(Dieser Beitrag wurde zuletzt bearbeitet: 29.12.2018, 23:53 von gerard1989.)
(29.12.2018, 19:54)harryberlin schrieb: i should try to check the system with other method.
Maybe implement the system identification like Peter Zelezny did when installing pibus software?
Code:
uname -a | grep -i osmc > /dev/null
if [ $? -eq 0 ]; then
OSMC="1"
HOMEDIR="/home/osmc"
CONFIGDIR="/boot"
FLAGS="-c22 -v4"
else
# OpenELEC
OSMC="0"
HOMEDIR="/storage"
CONFIGDIR="/flash"
FLAGS="-c22 -v4"
fi
cd ${HOMEDIR}
if [ $? -ne 0 ]; then
exit 2
fi
install_autostart
install_pibus
install_skin
install_dac_overlay
install_pi3_overlay
As far as I understand, this is a mistake in system identification, since you entered the system definition by host name, and if the host name is not osmc, then the installation principle for another system, for example LibreElec, is launched.
Did I understand this situation correctly?