-
- #
- # remove funky config options for sshd (so that when we restart
- # things will operate normally i.e., without automount magic)
- #
- rm /etc/sysconfig/sshd
- if [ "$RUNLEVEL" != "unknown" ]; then
- echo
- echo "You need to manually restart sshd."
- echo "Make sure you know what you're doing, particularly"
- echo "if you're making this change over an ssh connection."
- echo
- fi
-
- #
- # stop automounter, remove entry from auto.master, restart if
- # necessary
- #
- [ "$RUNLEVEL" != "unknown" ] && /etc/init.d/autofs stop
- auto_master=/etc/auto.master
- mv $auto_master $auto_master.pl_sshd.preun
- sed -e '\,^/var/pl_sshd/keys,d' $auto_master.pl_sshd.preun \
- >$auto_master
-
- [ "$RUNLEVEL" != "unknown" ] && /etc/init.d/autofs start