diff options
author | Mike Makonnen <mtm@FreeBSD.org> | 2004-01-17 11:25:16 +0000 |
---|---|---|
committer | Mike Makonnen <mtm@FreeBSD.org> | 2004-01-17 11:25:16 +0000 |
commit | e27b3ff8b6538c140e5a8d8aecf61b2ed3527672 (patch) | |
tree | baf961a09f2753309620a1f85106153094a1ae9a /etc/rc.d/accounting | |
parent | e90a5063a4d1fee87496b53d921a590957e859b4 (diff) | |
download | src-e27b3ff8b6538c140e5a8d8aecf61b2ed3527672.tar.gz src-e27b3ff8b6538c140e5a8d8aecf61b2ed3527672.zip |
Remove checks for the FreeBSD OS.
Notes
Notes:
svn path=/head/; revision=124627
Diffstat (limited to 'etc/rc.d/accounting')
-rwxr-xr-x | etc/rc.d/accounting | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/etc/rc.d/accounting b/etc/rc.d/accounting index 55c7529aa10e..7b07a9dc45b1 100755 --- a/etc/rc.d/accounting +++ b/etc/rc.d/accounting @@ -20,22 +20,16 @@ stop_cmd="accounting_stop" accounting_start() { - case ${OSTYPE} in - FreeBSD) - _dir=`dirname "$accounting_file"` - if [ ! -d `dirname "$_dir"` ]; then - if ! mkdir -p "$_dir"; then - warn "Could not create $_dir." - return 1 - fi + _dir=`dirname "$accounting_file"` + if [ ! -d `dirname "$_dir"` ]; then + if ! mkdir -p "$_dir"; then + warn "Could not create $_dir." + return 1 fi - if [ ! -e "$accounting_file" ]; then - touch "$accounting_file" - fi - ;; - *) - ;; - esac + fi + if [ ! -e "$accounting_file" ]; then + touch "$accounting_file" + fi if [ ! -f ${accounting_file} ]; then echo "Creating accounting file ${accounting_file}" |