eaea23aab0
Here are some enhancements to sushi's System Maintenance menu. To summarize the changes: * Make a backup of the file before modifying it. * Fixes to get all menus/forms working. * Missing/invalid settings (like in rc.conf and inetd.conf) have been added/removed. * Most files don't get overwritten now but are edited instead. So specials settings in e.g. /etc/rc.conf don't get lost now. * Some help menu fixes. ($NetBSD$ tag has been removed because I don't see how it would be useful for either user or developer).
12 lines
207 B
Bash
12 lines
207 B
Bash
#!/bin/sh
|
|
# $NetBSD: script7,v 1.1 2004/03/09 21:36:37 garbled Exp $
|
|
|
|
grep "^Subsystem.*sftp" /etc/ssh/sshd_config 2>&1 >/dev/null
|
|
if [ $? -eq 0 ]; then
|
|
echo "yes"
|
|
echo "no"
|
|
else
|
|
echo "no"
|
|
echo "yes"
|
|
fi
|