#!/bin/sh set -e # Am I a server? rc=0 chroot /target lliurex-version -t server && rc=1 if [ $rc -eq 1 ] ; then # Reconfigure openssh-server inside chroot chroot /target/ dpkg-reconfigure openssh-server else echo "You are other flavour" fi # Am I a client? rc=0 chroot /target lliurex-version -t client && rc=1 if [ $rc -eq 1 ] ; then # Reconfigure openssh-server inside chroot chroot /target/ dpkg-reconfigure openssh-server else echo "You are other flavour" fi exit 0