7 if [ -z "$TARGET" -o ! -d "$TARGET" ]; then
8 echo "Missing target directory"
12 mkdir $TARGET/etc/ssh/userkeys
13 cat /etc/ssh/userkeys/root > $TARGET/etc/ssh/userkeys/root
14 grep '^AuthorizedKeysFile /etc/ssh/userkeys' $TARGET/etc/ssh/sshd_config || echo 'AuthorizedKeysFile /etc/ssh/userkeys/%u' >> $TARGET/etc/ssh/sshd_config