mirror of https://github.com/OpenIPC/firmware.git
[no ci] General: add debug messages to datalink console setup
parent
c3a69061ae
commit
e9cf0d9e6f
|
@ -1,6 +1,5 @@
|
|||
#!/bin/sh
|
||||
chip=$(ipcinfo -c)
|
||||
skip=$(fw_printenv -n fpv)
|
||||
fw=$(grep "BUILD_OPTION" "/etc/os-release" | cut -d= -f2)
|
||||
|
||||
if [ -e /etc/datalink.conf ]; then
|
||||
|
@ -9,10 +8,13 @@ fi
|
|||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ "$skip" = "true" ]; then
|
||||
sed -i "s/console/#console/g" /etc/inittab
|
||||
elif [ "$skip" = "false" ]; then
|
||||
sed -i "s/#console/console/g" /etc/inittab
|
||||
if [ "$(fw_printenv -n fpv)" = "false" ]; then
|
||||
if grep -q "#console" /etc/inittab; then
|
||||
echo "Restart system to restore console..."
|
||||
sed -i "s/#console/console/g" /etc/inittab
|
||||
rm -f /etc/system.ok
|
||||
reboot
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue