开发者

NFS home / .profile / 3 flavors of UNIX : best practices?

开发者 https://www.devze.com 2023-01-06 10:50 出处:网络
Three flavors of UNIX: Linux, Solaris, IRIX... one NFS mounted home directory. I\'d like to ha开发者_StackOverflow中文版ve a (slightly) different .profile behavior based on the OS that I\'m connectin

Three flavors of UNIX: Linux, Solaris, IRIX... one NFS mounted home directory.

I'd like to ha开发者_StackOverflow中文版ve a (slightly) different .profile behavior based on the OS that I'm connecting to. I can hack something together, but I'd like to not re-invent the wheel if it's not necessary.

Is there a best practice for splitting out .profiles sections based on operating system?


#!/bin/sh

case `uname` in
Linux*)
...
esac
0

精彩评论

暂无评论...
验证码 换一张
取 消