added editsysconf command in macosx.sh

This commit is contained in:
Haoyang Wang
2015-12-10 20:34:20 -08:00
parent 2a2bbe690f
commit fd6d69dd9f
2 changed files with 10 additions and 6 deletions

View File

@@ -91,6 +91,15 @@ xgroup2)
fi
;;
xeditsysconf)
sed 's/^GDBPATH/#GDBPATH/' $2 \
| sed 's/^GREPPATH=\/bin\/grep/GREPPATH=\/usr\/bin\/grep/' \
| sed 's/^PANICTRACE_GDB=[12]/PANICTRACE_GDB=0/' \
| sed 's/^#OPTIONS=.*/&\
OPTIONS=!use_darkgray/' \
> $3
;;
#% dscl localhost -read /Search/Groups/wheel
# AppleMetaNodeLocation: /Local/Default
# GeneratedUID: ABCDEFAB-CDEF-ABCD-EFAB-CDEF00000000