NetBSD/share/sushi/procs/stopallprocs/script

13 lines
224 B
Bash
Executable File

#!/bin/sh
# $NetBSD: script,v 1.1 2001/04/26 02:26:21 garbled Exp $
if [ "$1" = "none" ]; then
echo "None selected, no action taken"
exit 0
fi
/etc/rc.d/$1 forcestop
if [ "$?" != "0" ]; then
echo "Failed to stop $1"
fi