Incorporated changes for release 1.3.4
This commit is contained in:
@@ -15,6 +15,42 @@ then
|
||||
exit 1
|
||||
fi
|
||||
echo ""
|
||||
echo -n "Raspberry Pi model is: "
|
||||
rpimodeltxt=$(tr -d '\0' < /proc/device-tree/model)
|
||||
echo $rpimodeltxt
|
||||
echo $rpimodeltxt|grep -q "Raspberry Pi 3"
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
ismodel3="true"
|
||||
fi
|
||||
echo ""
|
||||
echo -n "OS Release version is: "
|
||||
os_rel_ver=`grep VERSION_CODENAME /etc/os-release | cut -d "=" -f2`
|
||||
echo $os_rel_ver
|
||||
echo ""
|
||||
echo -n "Architecture is: "
|
||||
arch_32_64=`getconf LONG_BIT`
|
||||
echo "$arch_32_64 bit"
|
||||
echo ""
|
||||
if [ $arch_32_64 -eq 64 -a "$ismodel3" = "true" ]
|
||||
then
|
||||
echo "Raspberry Pi 3 hardware is known to have problems with acting as a"
|
||||
echo "wireless access point when 64 bit kernels are used. If you intend for"
|
||||
echo "this terminal to act as a wireless access point, you should stop here,"
|
||||
echo "power off, remove the microsd card and re-image using a 32 bit version"
|
||||
echo "of Raspberry Pi OS."
|
||||
echo -n "Ignore and [c]ontinue or [A]bort? [c/A]: "
|
||||
read archabort
|
||||
if [ "$archabort" = "C" -o "$archabort" = "c" ]
|
||||
then
|
||||
echo ""
|
||||
echo "Continuing with installation."
|
||||
else
|
||||
echo ""
|
||||
echo "Aborting installation."
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
echo ""
|
||||
echo "If this terminal connects to a network using ethernet, it can be configured"
|
||||
echo "as a wireless access point for other terminals. Would you like to configure"
|
||||
@@ -25,9 +61,9 @@ then
|
||||
echo "Configuring as wireless access point."
|
||||
echo ""
|
||||
echo "Copying files..."
|
||||
chmod +x apsetup/usr/local/bin/*
|
||||
cp apsetup/usr/local/bin/* /usr/local/bin
|
||||
cp -R apsetup/etc/* /etc
|
||||
chmod +x $os_rel_ver/apsetup/usr/local/bin/*
|
||||
cp -v$os_rel_ver/apsetup/usr/local/bin/* /usr/local/bin
|
||||
cp -Rv $os_rel_ver/apsetup/etc/* /etc
|
||||
echo ""
|
||||
wapssidok=0
|
||||
while [ "$wapssidok" -ne 1 ]
|
||||
|
||||
Reference in New Issue
Block a user