Jump to content


Photo

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


  • Please log in to reply
4 replies to this topic

#1 areq

  • Member
  • 7 posts

0
Neutral

Posted Yesterday, 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
  • 70,997 posts

+1,837
Excellent

Posted Yesterday, 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
  • 7 posts

0
Neutral

Posted Yesterday, 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
  • 70,997 posts

+1,837
Excellent

Posted Yesterday, 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
  • 7 posts

0
Neutral

Posted Yesterday, 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.



2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users