mirror of
https://github.com/aljazceru/cryptoanarchywiki.github.io.git
synced 2025-12-17 05:04:21 +01:00
1.0 KiB
1.0 KiB
layout, title, date, categories
| layout | title | date | categories | |
|---|---|---|---|---|
| post | Simple bash scripting for login before open the terminal | 2016-04-19 19:19:21 +0700 |
|
Add this in your file of /etc/bash.bashrc, makesure you logged in as root.
{% highlight ruby %}
===============================================
Simple bash scripting for login before open the terminal.
Credit: - agus@python.web.id
Location, end script of: /etc/bash.bashrc
===============================================
while true; do
Don't exit at Ctrl-C
trap "echo" SIGINT
printf "\n" echo -n " Who are you guys? "; read -s name; if [ "$name" == "agus" ]; then reset printf "\n Welcome my KING! you are the best!!\n" printf " "; date; printf " Please start your activity with Basmalah\n\n" break else printf "\n Heey you! why you here!! You are not owner of this machine!\n" fi done
===============================================
END
===============================================
{% endhighlight %}