[type/__sysctl] Add Mac OS X support
This commit is contained in:
		
					parent
					
						
							
								566feba5b1
							
						
					
				
			
			
				commit
				
					
						45ff67c0f5
					
				
			
		
					 2 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
					@ -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=''
 | 
				
			||||||
    ;;
 | 
					    ;;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,7 +28,7 @@ case "$os" in
 | 
				
			||||||
      :
 | 
					      :
 | 
				
			||||||
   ;;
 | 
					   ;;
 | 
				
			||||||
   # BSD
 | 
					   # BSD
 | 
				
			||||||
   freebsd|netbsd|openbsd)
 | 
					   freebsd|macosx|netbsd|openbsd)
 | 
				
			||||||
      :
 | 
					      :
 | 
				
			||||||
   ;;
 | 
					   ;;
 | 
				
			||||||
   *)
 | 
					   *)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue