-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patht480s.sh
27 lines (22 loc) · 857 Bytes
/
t480s.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Name: T480s tuning system
# Authors: Marcílio Nascimento <marcilio.mcn at gmail.com>
# First Release: 2020, February
# Description: Tuning commands for ThinkPad T480s on Void Linux
# License: MIT
# Version: 202002.01
# Declare constants and variables
REPO='http://mirror.clarkson.edu/voidlinux'
PKG_LIST=''
# Detect if we're on GenuineIntel system
CPU_VENDOR=$(awk -F ' ' '/vendor_id/ {print $NF; exit}' /proc/cpuinfo)
# If GenuineIntel, install void-repo-nonfree, add package for this architecture in $PKG_LIST
# and update the xbps-install type for installation
if [ $CPU_VENDOR == 'GenuineIntel' ]; then
clear
echo ''
echo 'Detected GenuineIntel Arch. Adding new repo and Package to install.'
sudo xbps-install -Sy -R ${REPO}/current/musl void-repo-nonfree
# PKG_LIST+='intel-ucode '
sudo xbps-install -Sy intel-ucode
fi