Remove unimplemented commands and help

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3984 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-06-03 20:01:38 +00:00
parent d7680c7c23
commit c3a2c1c182
2 changed files with 0 additions and 88 deletions

View File

@ -71,18 +71,6 @@ allow)
See also \"help address\""
;;
check)
echo "check: check [ -e ] [ <configuration-directory> ]
Performs a cursory validation of the zones, interfaces, hosts,
rules, policy, masq, blacklist, proxyarp, nat and provider files. Use this
if you are unsure of any edits you have made to the shorewall configuration.
See the try command examples for a recommended way to make changes.
The \"-e\" option causes Shorewall to use the /etc/shorewall/capabilities
file to determine the capabilities of the target system rather than probing
for them on the local system."
;;
clear)
echo "clear: clear
Clear will remove all rules and chains installed by Shoreline.
@ -91,33 +79,6 @@ clear)
firewall is causing connection problems."
;;
compile)
echo "compile: compile [ -e ] [ -d <distro> ] [ <directory name> ] <path name>
Compiles the current configuration into the executable file
<path name>. If <path name> names a file in /var/lib/shorewall then
the file may be executed using the \"restore\" command.
When -e is specified, the compilation is being performed on a system
other than where the compiled script will run. This option disables
certain configuration options that require the script to be compiled
where it is to be run.
When -d <distribution> is given, the script is built for execution
on the distribution specified by <distro>. Currently supported
distributions are:
suse
redhat (which is also appropriate for Fedora Core and CentOS).
Usually specified together with -e.
Example:
shorewall compile -ed redhat foo
Additional distributions are expected to be supported shortly."
;;
debug)
echo "debug: debug
If you include the keyword debug as the first argument to any
@ -269,19 +230,6 @@ restart)
If \"-n\" is specified, no changes to routing will be made"
;;
safe-restart)
echo "safe-restart: safe-restart
Restart the same way as a shorewall restart except that previous firewall
configuration is backed up and will be restored if you notice any anomalies
or you are not able to reach the firewall any more."
;;
safe-start)
echo "safe-start: safe-start
Start the same way as a shorewall start except that in case of anomalies
shorewall clear is issued. "
;;
restore)
echo "restore: restore [ -n ] [ <file name> ]
Restore Shorewall to a state saved using the 'save' command
@ -387,18 +335,6 @@ trace)
The word 'debug' is a synonym for 'trace'."
;;
try)
echo "try: try [ -n ] <configuration-directory> [ <timeout> ]
Restart shorewall using the specified configuration. If an error
occurs during the restart, then another shorewall restart is performed
using the default configuration. If a timeout is specified then
the restart is always performed after the timeout occurs and uses
the default configuration.
The \"-n\" option will be passed down to the underlying commands (see
'start', 'restart' and 'restore')"
;;
version)
echo "version: version
Show the current shorewall version which is: $version"

View File

@ -961,7 +961,6 @@ usage() # $1 = exit status
echo " allow <address> ..."
echo " check [ -e ] [ <directory> ]"
echo " clear"
echo " compile [ -e ] [ -d <distribution> ] [ <directory name> ] <path name>"
echo " delete <interface>[:<host-list>] ... <zone>"
echo " drop <address> ..."
echo " dump [ -x ]"
@ -984,7 +983,6 @@ usage() # $1 = exit status
echo " start [ -f ] [ -n ] [ <directory> ]"
echo " stop"
echo " status"
echo " try <directory> [ <timeout> ]"
echo " version"
echo
exit $1
@ -1257,12 +1255,6 @@ case "$COMMAND" in
[ $# -ne 1 ] && usage 1
export NOROUTES
exec $SHOREWALL_SHELL $FIREWALL $debugging $nolock $COMMAND
;;
compile)
shift
compile_command $@
;;
restart)
shift
@ -1364,22 +1356,6 @@ case "$COMMAND" in
version)
echo $version
;;
try)
[ -n "$SHOREWALL_DIR" ] && startup_error "ERROR: -c option may not be used with \"try\""
[ $# -lt 2 -o $# -gt 3 ] && usage 1
VERBOSE=$(make_verbose)
[ -n "$NOROUTES" ] && NOROUTES=-n
if ! $0 $debugging $VERBOSE -c $2 restart; then
if ! $IPTABLES -L shorewall > /dev/null 2> /dev/null; then
$0 $VERBOSE $NOROUTES start
fi
elif ! $IPTABLES -L shorewall > /dev/null 2> /dev/null; then
$0 $VERBOSE $NOROUTES start
elif [ $# -eq 3 ]; then
sleep $3
$0 $VERBOSE $NOROUTES restart
fi
;;
logwatch)
shift