-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremove-nonfree
More file actions
executable file
·43 lines (33 loc) · 1.06 KB
/
remove-nonfree
File metadata and controls
executable file
·43 lines (33 loc) · 1.06 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
# Copyright: 2017 Alf Gaida <agaida@siduction.org>
# License: WTFPL-2
#
# 0. You just DO WHAT THE FUCK YOU WANT TO.
help() {
echo "========================================================"
echo "= ="
echo "= WARNING: ="
echo "= This script makes your install DFSG compliant. ="
echo "= Running it might on the other hand lead to a ="
echo "= not working wifi or problems with your AMD card. ="
echo "= ="
echo "========================================================"
}
usage() {
echo "remove-nonfree [options]"
echo ""
echo "Options:"
echo " --help, -h this screen"
echo " --show, -s show things to touch"
}
# implement optargs
# TODO
pkglist=$(vrms -s -q)
for i in $pkglist; do
apt purge $i --assume-yes || true
done
for i in /etc/apt/sources.list.d/*; do
sed -i 's#contrib##g' $i
sed -i 's#non-free##g' $i
done
vrms