Jump to content


Photo

[request] /etc/os-release - Operating system identification


  • Please log in to reply
14 replies to this topic

#1 areq

  • Member
  • 10 posts

0
Neutral

Posted 28 December 2024 - 21:37

I have a request for developers to add the /etc/os-release file to OpenPLi. This has been a standard in Linux systems since 2012 so that it contains standardized information about the system.

 
This would be useful for simple system identification in installation scripts for additional software.
 
More information:


Re: [request] /etc/os-release - Operating system identification #2 WanWizard

  • PLi® Core member
  • 71,080 posts

+1,838
Excellent

Posted 28 December 2024 - 22:31

Do you need anything specific in there, or is the default Yocto recipe enough?

 

btw: we are not in favour of anything being installed by scripts.

 

That is the ATV way, they are ok with god knows what being installed or scripted by god know whom, they don't seem to care about image stabilty for endusers. 99 of 100 installer scripts I see, or scripts in handmade ipks, are absolutely rubbish, and are mainly used to work around deficiencies in either the ipk or in the image. Missing depends in ipk control files is a big example.

 

For us, there is only one valid way to install something: from the supplied feed. And you get your stuff into that feed by publising your sources in a git repo so a build recipe can be made.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [request] /etc/os-release - Operating system identification #3 areq

  • Member
  • 10 posts

0
Neutral

Posted 28 December 2024 - 23:06

no, nothing specific, just information that it's OpenPLi and its version, possibly information about the architecture

For example what I have on my router with openwrt:
# cat /etc/os-release
NAME="OpenWrt"
VERSION="23.05-SNAPSHOT"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt 23.05-SNAPSHOT"
VERSION_ID="23.05-snapshot"
BUILD_ID="r23551-5368066e9b"
OPENWRT_BOARD="ramips/mt7621"
OPENWRT_ARCH="mipsel_24kc"
OPENWRT_TAINTS=""
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt 23.05-SNAPSHOT r23551-5368066e9b"


Re: [request] /etc/os-release - Operating system identification #4 WanWizard

  • PLi® Core member
  • 71,080 posts

+1,838
Excellent

Posted 28 December 2024 - 23:08

I know what it looks like on other distro's, I'm using linux since 1997 ;).

 

I'll see what standard OE can produce, don't want to spend much time on it, most images already have all this info, in /usr/lib/enigma.info, in a standardized and parseable format.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [request] /etc/os-release - Operating system identification #5 areq

  • Member
  • 10 posts

0
Neutral

Posted 28 December 2024 - 23:22

sorry, I didn't mean to offend you.

I've been using Linux since 1997/98 too, God, I'm so old ;) but I didn't know about /usr/lib/enigma.info. Thanks.
 
however, /etc/os-release is also useful as a general standard.


Re: [request] /etc/os-release - Operating system identification #6 WanWizard

  • PLi® Core member
  • 71,080 posts

+1,838
Excellent

Posted 29 December 2024 - 15:30

Not offended, no worries.

 

Soon we'll be the only people still alive who know what a keyboard is.... :).

 

enigma-info is an info file standardized between all image makers, specifically for dealing with image-specific code. You can find the docs here: https://github.com/O...NIGMAINFOVALUES


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [request] /etc/os-release - Operating system identification #7 Pr2

  • PLi® Contributor
  • 6,217 posts

+262
Excellent

Posted 30 December 2024 - 14:40

...


Edited by Pr2, 30 December 2024 - 14:43.

NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: [request] /etc/os-release - Operating system identification #8 littlesat

  • PLi® Core member
  • 57,522 posts

+709
Excellent

Posted 30 December 2024 - 14:46

What kind of scripts are you targeting to use on an enigma2 box what needs this?


Edited by littlesat, 30 December 2024 - 14:47.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: [request] /etc/os-release - Operating system identification #9 areq

  • Member
  • 10 posts

0
Neutral

Posted 30 December 2024 - 15:30

I am writing a simple script that detects external readers and suggests which packages to install depending on the system.

 
I thought it would be cool if openpli, like any other Linux distribution, provided this information in /etc/os-release


Re: [request] /etc/os-release - Operating system identification #10 littlesat

  • PLi® Core member
  • 57,522 posts

+709
Excellent

Posted 30 December 2024 - 15:38

What information do you need there (at the minimum)?


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: [request] /etc/os-release - Operating system identification #11 WanWizard

  • PLi® Core member
  • 71,080 posts

+1,838
Excellent

Posted 30 December 2024 - 15:47

I doubt information about external readers is in /etc/os-release, and also, as external readers are handled at the OS level, the are distro independent, we're all running OpenEmbedded.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [request] /etc/os-release - Operating system identification #12 areq

  • Member
  • 10 posts

0
Neutral

Posted 30 December 2024 - 19:58

I'm just answering @littlesat's question about what I'm going to do ;) it has nothing to do with the contents of /etc/os-release. 
 
It would be nice to simply have /etc/os-release with the information that it's openPli in for example version 9  (similarly to how I check if my script is running on Debian or Redhat).
Only this.
 
NAME="OpenPLi"
VERSION="9.0-release"
ID="openpli"
ID_LIKE="openembedded"
PRETTY_NAME="OpenPLi 9.0-release"
VERSION_ID="9.0"


Re: [request] /etc/os-release - Operating system identification #13 WanWizard

  • PLi® Core member
  • 71,080 posts

+1,838
Excellent

Posted 30 December 2024 - 20:10

As said, you can get that information from /usr/lib/enigma.info, on any more or less recent Enigma distro.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [request] /etc/os-release - Operating system identification #14 WanWizard

  • PLi® Core member
  • 71,080 posts

+1,838
Excellent

Posted 30 December 2024 - 21:00

I've run a test build of os-release, and in its current state it is useless for your purpose.

 

The OE recipe creates an ARCH all package, with only this

[wanwizard@batman] $ cat os-release 
ID=openpli
NAME="openpli"
VERSION="scarthgap"
VERSION_ID=scarthgap
PRETTY_NAME="openpli scarthgap"
CPE_NAME="cpe:/o:openembedded:openpli:scarthgap"

I'm not going to spend time diving into this and creating a customized version, for data that can already be retrieved in a standardized way.
 


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [request] /etc/os-release - Operating system identification #15 areq

  • Member
  • 10 posts

0
Neutral

Posted 30 December 2024 - 21:08

it's OK - thanks!




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users