-
- #
- # remove funky config options for sshd (so that when we restart
- # things will operate normally i.e., without automount magic),
- # then restart
- #
- rm /etc/sysconfig/sshd
- [ "$RUNLEVEL" != "unknown" ] && /etc/init.d/sshd restart
-
- #
- # 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