From 1d70a6f072f6848edf4c006336f5523e9baccbce Mon Sep 17 00:00:00 2001 From: toloveru Date: Sat, 8 Apr 2017 22:54:24 +0200 Subject: [PATCH] Licensing The single most boring part of coding... --- README.md | 2 +- install | 2 ++ kernelcheck | 2 ++ notify_all | 3 +++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 77aa117..f4277cd 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ So, in a nutshell: In a non-interactive script, it's much easier to run priveleged by default and drop priveleges as needed, instead of requiring authentication every time. If you know of a fully non-interactive way of achieving on-the-fly enhanced priveleges though, feel free to open a pull request. ### I want to use this code in my own projects. What should I be aware of? -If you wish to redistribute, share or otherwise modify the material provided in this project, aside from the license, the following rules also apply and when conflicting with the license supersede it: +If you wish to redistribute, share or otherwise modify the material provided in this project, aside from the license, the following rules also apply and when conflicting with the license override it: * You must use it for non-commercial purposes only. * Attribution to this project (my name and a link to this repository) are required. * In disputes, the previous Creative Commons license is invalid. diff --git a/install b/install index 7e643ff..f05e3de 100755 --- a/install +++ b/install @@ -1,5 +1,7 @@ #!/bin/sh +# Copyright 2017 Michael De Roover + if [ $EUID != 0 ] then printf "This script needs to be run as root.\n" diff --git a/kernelcheck b/kernelcheck index 3dc8016..d3bde66 100755 --- a/kernelcheck +++ b/kernelcheck @@ -1,5 +1,7 @@ #!/bin/sh +# Copyright 2017 Michael De Roover + # Variables latest="$(wget -qO - 'https://kernel.org' | sed -n '/stable:/{n;p;}' | sed 's.[a-z]\|<\|>\|/\|[[:space:]]..g')" current="$(uname -r)" diff --git a/notify_all b/notify_all index b44e355..f2e83be 100755 --- a/notify_all +++ b/notify_all @@ -1,4 +1,7 @@ #!/bin/sh + +# I (Michael De Roover) do not own this code. Many thanks to Stack Exchange user Andy (http://unix.stackexchange.com/users/187608/andy) for submitting it on http://unix.stackexchange.com/a/307097. + PATH=/usr/bin XUSERS=($(who|egrep "\(:[0-9](\.[0-9])*\)"|awk '{print $1$5}'|sort -u))