Licensing

The single most boring part of coding...
This commit is contained in:
toloveru 2017-04-08 22:54:24 +02:00
parent 94a0fd38bb
commit 1d70a6f072
4 changed files with 8 additions and 1 deletions

View File

@ -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.

View File

@ -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"

View File

@ -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)"

View File

@ -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))