Hi All,
I am trying to execute a script in *“pkg_postinst_ontarget_${PN}”* to configure
the static IP address of the embedded board. The script executes at first boot,
but *it doesn’t display echo or read messages.* These messages are required to
improve user experience with the setup process.
Script is as below:
pkg_postinst_ontarget_${PN} () {
#!/bin/sh -e
# This will run on first boot
echo "Starting setup script..."
read -p "Enter the IP address: " ipAddress
read -p "Enter the netmask: " netmask
read -p "Enter network gateway: " gateway
cat >> /etc/network/interfaces << EOF
iface eth0 inet static
address $ipAddress
netmask $netmask
gateway $gateway
EOF
}
Please help me to fix the problem in displaying *echo* and *read* messages to
improve user experience with the setup process.
Thanks,
Sanjay Kumar
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55582): https://lists.yoctoproject.org/g/yocto/message/55582
Mute This Topic: https://lists.yoctoproject.org/mt/87719351/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-