Skip to content

Instantly share code, notes, and snippets.

@RobertCNelson
RobertCNelson / fix.sh
Last active September 2, 2016 13:23 — forked from T4cC0re/fix.sh
Permanently fix VMWare kernel module sources for Kernel 4.6+ and (re-)build them (can be run multiple times)
#!/usr/bin/env bash
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
KMAJ="$(uname -r | cut -d. -f1)"
KMIN="$(uname -r | cut -d. -f2)"
if [ "${KMAJ}" != "4" ]; then
echo "This script has to be run on a 4.x kernel." 1>&2
[Desktop Entry]
Version=1.0
Name=Chromium Web Browser viewing BONE101
Exec=/home/debian/bone101.sh
Terminal=false
Type=Application