mirror of
https://github.com/n5amd/NextionDriverInstaller.git
synced 2025-12-06 03:42:00 +01:00
Put users and groups files at the right place.
This commit is contained in:
parent
9bd47fa8b2
commit
e806bf5203
|
|
@ -1,5 +1,8 @@
|
||||||
NextionDriver Installer and Checker
|
NextionDriver Installer and Checker
|
||||||
===================================
|
===================================
|
||||||
|
|
||||||
|
This is installer version 1.03 ( 09 feb 2019 )
|
||||||
|
|
||||||
This repository brings you 3 helper programs for the installation of
|
This repository brings you 3 helper programs for the installation of
|
||||||
NextionDriver when you do not want to do it by hand:
|
NextionDriver when you do not want to do it by hand:
|
||||||
|
|
||||||
|
|
@ -8,8 +11,6 @@ NextionDriver when you do not want to do it by hand:
|
||||||
using NextionDriver (this is called by the installer program)
|
using NextionDriver (this is called by the installer program)
|
||||||
* a program to check the installation
|
* a program to check the installation
|
||||||
|
|
||||||
This is installer version 1.02 ( 03 feb 2019 )
|
|
||||||
|
|
||||||
-----
|
-----
|
||||||
__Please use this installer to update your system if your installation is
|
__Please use this installer to update your system if your installation is
|
||||||
older than this date. Even if the NextionDriver was recently updated__
|
older than this date. Even if the NextionDriver was recently updated__
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,8 @@ if [ "$CHECK" = "" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "----------------------"
|
echo "----------------------"
|
||||||
echo "Searchin MMDVMHost ..."
|
echo "Searching MMDVMHost ..."
|
||||||
echo "----------------------"
|
echo "-----------------------"
|
||||||
if [ "$MMDVM" = "" ]; then
|
if [ "$MMDVM" = "" ]; then
|
||||||
MMDVM=$(find / -executable | grep "MMDVMHost$")
|
MMDVM=$(find / -executable | grep "MMDVMHost$")
|
||||||
AANT=$(echo "$MMDVM" | wc -l)
|
AANT=$(echo "$MMDVM" | wc -l)
|
||||||
|
|
@ -59,7 +59,7 @@ else
|
||||||
echo "+ MMDVMHost found at $MMDVM"
|
echo "+ MMDVMHost found at $MMDVM"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "+ Searchin MMDVMHost configuration file ..."
|
echo "+ Searching MMDVMHost configuration file ..."
|
||||||
CONFIGOK=""
|
CONFIGOK=""
|
||||||
if [ -f "$CONFIGFILE" ]; then
|
if [ -f "$CONFIGFILE" ]; then
|
||||||
CONFIGOK=$(cat $CONFIGFILE | grep General)
|
CONFIGOK=$(cat $CONFIGFILE | grep General)
|
||||||
|
|
@ -121,8 +121,8 @@ fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "--------------------------"
|
echo "--------------------------"
|
||||||
echo "Searchin NextionDriver ..."
|
echo "Searching NextionDriver ..."
|
||||||
echo "--------------------------"
|
echo "---------------------------"
|
||||||
if [ "$ND" = "" ]; then
|
if [ "$ND" = "" ]; then
|
||||||
ND=$(find / -executable | grep "NextionDriver$")
|
ND=$(find / -executable | grep "NextionDriver$")
|
||||||
AANT=$(echo "$ND" | wc -l)
|
AANT=$(echo "$ND" | wc -l)
|
||||||
|
|
|
||||||
16
install.sh
16
install.sh
|
|
@ -5,7 +5,7 @@
|
||||||
# #
|
# #
|
||||||
# (c)2018-2019 by ON7LDS #
|
# (c)2018-2019 by ON7LDS #
|
||||||
# #
|
# #
|
||||||
# V1.02 #
|
# V1.03 #
|
||||||
# #
|
# #
|
||||||
#########################################################
|
#########################################################
|
||||||
|
|
||||||
|
|
@ -36,6 +36,7 @@ MMDVM=$(which MMDVMHost)
|
||||||
BINDIR=$(echo "$MMDVM" | sed "s/\/MMDVMHost//")
|
BINDIR=$(echo "$MMDVM" | sed "s/\/MMDVMHost//")
|
||||||
CONFIGFILE="MMDVM.ini"
|
CONFIGFILE="MMDVM.ini"
|
||||||
CONFIGDIR="/etc/"
|
CONFIGDIR="/etc/"
|
||||||
|
FILESDIR="/usr/local/etc/"
|
||||||
SYSTEMCTL="systemctl daemon-reload"
|
SYSTEMCTL="systemctl daemon-reload"
|
||||||
MMDVMSTOP="service mmdvmhost stop"
|
MMDVMSTOP="service mmdvmhost stop"
|
||||||
MMDVMSTART="service mmdvmhost start"
|
MMDVMSTART="service mmdvmhost start"
|
||||||
|
|
@ -74,9 +75,11 @@ checkversion () {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
helpfiles () {
|
helpfiles () {
|
||||||
|
rm -f /etc/groups.txt
|
||||||
|
rm -f /etc/stripped.csv
|
||||||
echo "+ Copying groups and users files"
|
echo "+ Copying groups and users files"
|
||||||
cp $DIR/groups.txt $CONFIGDIR
|
cp $DIR/groups.txt $FILESDIR
|
||||||
cp $DIR/stripped.csv $CONFIGDIR
|
cp $DIR/stripped.csv $FILESDIR
|
||||||
}
|
}
|
||||||
herstart () {
|
herstart () {
|
||||||
echo -e "\n+ To test if it all works as expected,"
|
echo -e "\n+ To test if it all works as expected,"
|
||||||
|
|
@ -105,8 +108,7 @@ if [ "$PISTAR" = "OK" ]; then
|
||||||
CHECK="PISTAR"
|
CHECK="PISTAR"
|
||||||
fi
|
fi
|
||||||
if [ "$CHECK" = "" ]; then
|
if [ "$CHECK" = "" ]; then
|
||||||
|
# echo "Bindir [$BINDIR]"
|
||||||
echo "Bindir [$BINDIR]"
|
|
||||||
if [ "$BINDIR" = "/opt/MMDVMHost" ]; then
|
if [ "$BINDIR" = "/opt/MMDVMHost" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "+ Found MMDVMHost in /opt."
|
echo "+ Found MMDVMHost in /opt."
|
||||||
|
|
@ -127,8 +129,6 @@ if [ "$CHECK" = "" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "$MMDVM" = "" ]; then
|
if [ "$MMDVM" = "" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "- No MMDVMHost found,"
|
echo "- No MMDVMHost found,"
|
||||||
|
|
@ -200,7 +200,7 @@ fi
|
||||||
VERSIE=$($ND -V | grep version | sed "s/^.*version //")
|
VERSIE=$($ND -V | grep version | sed "s/^.*version //")
|
||||||
V=$(echo $VERSIE | sed 's/\.//')
|
V=$(echo $VERSIE | sed 's/\.//')
|
||||||
echo "+ NextionDriver $VERSIE found at $ND"
|
echo "+ NextionDriver $VERSIE found at $ND"
|
||||||
echo "+ We are version $THISVERSION"
|
echo "+ We are at version $THISVERSION"
|
||||||
|
|
||||||
if [ $TV -gt $V ]; then
|
if [ $TV -gt $V ]; then
|
||||||
echo "+ Start Update"
|
echo "+ Start Update"
|
||||||
|
|
|
||||||
0
mmdvmhost.service.pistar
Executable file → Normal file
0
mmdvmhost.service.pistar
Executable file → Normal file
0
nextiondriver.service.binary.pistar
Executable file → Normal file
0
nextiondriver.service.binary.pistar
Executable file → Normal file
Loading…
Reference in a new issue