On 2018-04-13 22:59, Brüns, Stefan wrote:
On Freitag, 13. April 2018 22:50:24 CEST Carlos E. R. wrote:
On 2018-04-13 22:17, Ralf Lang wrote:
Am 13.04.2018 um 21:40 schrieb David C. Rankin:
That's most likely intentional, SLE15 also does not have this file anymore. /etc/os-release has been the way to go for years now, it's cross-distro and you should really move/change your scripts now at the very latest.
But being cross-distro means that it has to be parsed to get the equivalent result to detecting the presence of SuSE-release
if grep -q 'ID_LIKE="suse"' /etc/os-release ; then echo "Geeko found!" fi
#!/bin/bash . /etc/os-release #... if [ $ID_LIKE -n ] ; then echo "Geeko found!" fi In his case, rather do a "case $ID_LIKE in" to cover several distros. Or perhaps use "ID" instead. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)