board/common: enable NETCONF over SSH

The allows remote NETCONF access to the Clixon example (for now).  This
will be replaced later with the Clixon Infix system.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-02-08 14:53:03 +01:00
parent 83b3a1b1cc
commit 2ddf9448fe
+7
View File
@@ -32,3 +32,10 @@ if [ -f "$TARGET_DIR/etc/dhcpcd.conf" ]; then
EOF
fi
fi
# Enable NETCONF over SSH
if [ -f "$TARGET_DIR/etc/ssh/sshd_config" ]; then
if ! grep -q clixon_netconf "$TARGET_DIR/etc/ssh/sshd_config"; then
sed -i '/^Subsystem[[:space:]]sftp.*/a Subsystem netconf /usr/bin/clixon_netconf -f /etc/example.xml' "$TARGET_DIR/etc/ssh/sshd_config"
fi
fi