Skip to content

Instantly share code, notes, and snippets.

View ddavidebor's full-sized avatar

Davide Bortolami ddavidebor

View GitHub Profile
#!/bin/bash
# Expects Ubuntu 16.06 (xenial) and kernel 4.x.
# Based upon a blog post by Zach at http://zachzimm.com/blog/?p=191
set -eux
# Have the user call sudo early so the credentials is valid later on
sudo whoami