mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user