OSDN Git Service

add st to dpi settings
[instantos/instantOS.git] / setup / osrelease.sh
1 #!/bin/bash
2
3 if ! whoami | grep -q '^root$'; then
4     echo "please run this as root"
5     exit
6 fi
7
8 CHANGEFILE=/etc/os-release
9
10 setoption() {
11     if grep -q "^$1" "$CHANGEFILE"; then
12         sed -i "/^$1/d'" "$CHANGEFILE"
13     fi
14     echo "$1=\"$2\""
15 }
16
17 setoption ID_LIKE arch
18 setoption NAME instantos
19 setoption PRETTY_NAME instantOS
20 setoption HOME_URL "https://instantos.io/"
21 setoption LOGO instantos
22
23 CHANGEFILE=/etc/lsb-release
24
25 setoption DISTRIB_DESCRIPTION instantOS