On 04/15/2018 08:59 AM, David C. Rankin wrote:
On 04/13/2018 05:44 PM, Carlos E. R. wrote:
David: don't symlink the file. Don't create it with zero bytes. As a temporary hack, create the file yourself with /correct/ contents:
openSUSE 15.0 (x86_64) VERSION = 15.0 CODENAME = Dunno # /etc/SuSE-release is deprecated and will be removed in the future...
And take that time to correct your scripts. No other way.
Will do. Parsing os-release is no problem (thank you and Bengt for the suggestions).
I think I'll go with: osrel=$(sed -n '/^ID=/s/^.*=//p' /etc/os-release); and then if test "$osrel" = "opensuse" then ... elseif test "$osrel" = "arch" then ... -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org