#!/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

