-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patht480s.sh
26 lines (22 loc) · 882 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
# UPDATETYPE='-Sy' # If GenuineIntel update local repository, change the next one to only '-y'
PKG_LIST=''
# Detect if we're on Intel system
CPU_VENDOR=$(grep vendor_id /proc/cpuinfo | uniq | awk '{print $3}')
# 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.'
xbps-install $UPDATETYPE -R ${REPO}/current/musl void-repo-nonfree
PKG_LIST+='intel-ucode '
UPDATETYPE='-y'
fi