projects
/
dotfiles-public.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4da691
)
Add SunOS entry to .bashrc.d/01detect_system (assumes /etc/motd is unchanged).
author
W. Trevor King
<wking@drexel.edu>
Mon, 13 Feb 2012 18:12:09 +0000
(13:12 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Mon, 13 Feb 2012 18:26:25 +0000
(13:26 -0500)
src/.bashrc.d/01detect_system
patch
|
blob
|
history
diff --git
a/src/.bashrc.d/01detect_system
b/src/.bashrc.d/01detect_system
index 6003503232abb3648f5525f1e9df3f2f5c3f949f..d9a5393719a6f46a3d16be99c2f6061beaf86d00 100644
(file)
--- a/
src/.bashrc.d/01detect_system
+++ b/
src/.bashrc.d/01detect_system
@@
-15,6
+15,8
@@
if [ -z "${OS}" ]; then
export OS='Ubuntu'
elif grep -i fedora /etc/issue > /dev/null 2>&1; then
export OS='Fedora'
+ elif grep -i sunos /etc/motd > /dev/null 2>&1; then
+ export OS='SunOS'
else
echo "unknown system. Adjust .bashrc.d/01detect_system or set OS by hand" >&2
fi