[type/__sysctl] Add Mac OS X support

This commit is contained in:
Takashi Yoshi 2018-12-14 13:06:31 +01:00
parent 566feba5b1
commit 45ff67c0f5
2 changed files with 8 additions and 2 deletions

View File

@ -31,7 +31,13 @@ os=$(cat "$__global/explorer/os")
case "$os" in case "$os" in
redhat|centos|ubuntu|debian|devuan|archlinux|coreos|netbsd) redhat|centos|ubuntu|debian|devuan|archlinux|coreos|netbsd)
flag='-w' flag='-w'
;; ;;
macosx)
# NOTE: Older versions of Mac OS X require the -w option.
# Even though the flag is not mentioned in new man pages anymore,
# it still works.
flag='-w'
;;
freebsd|openbsd) freebsd|openbsd)
flag='' flag=''
;; ;;

View File

@ -28,7 +28,7 @@ case "$os" in
: :
;; ;;
# BSD # BSD
freebsd|netbsd|openbsd) freebsd|macosx|netbsd|openbsd)
: :
;; ;;
*) *)