⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.112
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
snap
/
core24
/
988
/
usr
/
libexec
/
core
/
View File Name :
get-mode
#!/bin/sh # Usage: # get-mode entry-name /path/to/modeenv # # get-mode will look for entry-name in modeenv files and return 0 if # found, 1 if not found. It will print the value to stdout. set -eu if [ "$#" -gt 2 ]; then echo "Too many arguments" 1>&2 exit 1 fi if [ "$#" -lt 1 ]; then echo "Expected a name as argument" 1>&2 exit 1 fi name="${1}" modeenv="${2:-/var/lib/snapd/modeenv}" while read -r line; do case "${line}" in "${name}"=*) echo "${line#*=}" exit 0 ;; *) ;; esac done <"${modeenv}" exit 1