Skip to content

Commit 9d33fe3

Browse files
committed
installer: fix service command not found on non-privideged login
1 parent 9887be7 commit 9d33fe3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/opt/raspberrypi-ua-netinst/install.sh

+9
Original file line numberDiff line numberDiff line change
@@ -1576,6 +1576,15 @@ else
15761576
fi
15771577
echo "OK"
15781578

1579+
# Password warning
1580+
echo -n "Fixing non-privileged SSH password warning... "
1581+
if [ -f /rootfs/etc/profile.d/sshpasswd.sh ]; then
1582+
sed -i "s/service ssh status/\/usr\/sbin\/service ssh status/" /rootfs/etc/profile.d/sshpasswd.sh
1583+
echo "OK"
1584+
else
1585+
echo "not possible!"
1586+
fi
1587+
15791588
# enable spi if specified in the configuration file
15801589
if [ "${spi_enable}" = "1" ]; then
15811590
sed -i "s/^#\(dtparam=spi=on\)/\1/" /rootfs/boot/config.txt

0 commit comments

Comments
 (0)