소스 검색

Sys info: added awk line for /etc/os-release

Sven Velt 5 년 전
부모
커밋
e693353c39
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      ssh-wrapper.py

+ 1 - 0
ssh-wrapper.py

@@ -10,6 +10,7 @@ allowed = [
 		##### System informations
 		r'^/usr/bin/lsb_release\s+-d$',		# Linux
 		r'^/(usr/)?bin/uname\s+-mrs$',		# Linux, BSD & others
+		r'''^/(usr/)?s?bin/awk -F'"' -e '/PRETTY_NAME/{ print \$2; }' /etc/os-release''',		# Linux: /etc/os-release via awk for get_os.py
 
 		##### Complete command lines (Monitoring-Plugins on Debian)
 		r'^/usr/lib/nagios/plugins/check_disk -w \d+% -c \d+% -p /[/a-z]*$',