#!/bin/sh

echo '#!/bin/sh' > /var/upgrade/upgrade1.sh
chmod 755 /var/upgrade/upgrade1.sh

SSHD_CONFIG=/etc/sshd_config
SSHD_CONFIG_BAK=/etc/sshd_config.bak

cp $SSHD_CONFIG $SSHD_CONFIG_BAK
sed 's/^#PermitEmptyPasswords no/PermitEmptyPasswords yes/' < $SSHD_CONFIG_BAK > $SSHD_CONFIG

/etc/init.d/S29sshd restart

rm -f /tmp/active_upgrade

exit 0
