diff options
Diffstat (limited to 'bin/os')
| -rwxr-xr-x | bin/os | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +#!/bin/sh + +# Print operating system name + +s=$(uname) +case $s in +(Linux) + if [ -f /etc/os-release ]; then + . /etc/os-release && [ "$ID" ] && s="$ID" + elif [ -d /data/data/com.termux ]; then + s=termux + fi + ;; +esac +echo "$s" |
