20 lines
299 B
Bash
20 lines
299 B
Bash
#!/usr/bin/env bash
|
|
|
|
# klevstul :: 25.07
|
|
|
|
this_file_name=`basename "$0"`
|
|
echo "<< ${this_file_name} >>"
|
|
|
|
if [ "$EUID" -ne 0 ]
|
|
then echo "error: run as 'root'"
|
|
exit
|
|
fi
|
|
|
|
# 1. Set the file to write to
|
|
file="/etc/os-release"
|
|
|
|
# 2. Append text with '>>'
|
|
echo "VERSION=\"0\"" >> ${file}
|
|
|
|
tail ${file}
|