Rename to more general name
(Portage version: 2.2.0_alpha123/git/Linux x86_64, RepoMan options: --force, unsigned Manifest commit)
This commit is contained in:
20
app-misc/sablink-core/files/00-sabayon-anti-fork-bomb.conf
Normal file
20
app-misc/sablink-core/files/00-sabayon-anti-fork-bomb.conf
Normal file
@@ -0,0 +1,20 @@
|
||||
# 00-sabayon-anti-fork-bomb.conf
|
||||
#
|
||||
# This file estabilishes Sabayon Linux default process
|
||||
# limits to defend the system against malicious or faulty
|
||||
# code that could potentially make the system unusable by
|
||||
# spawning an excessive amount of processes.
|
||||
#
|
||||
# The root account is not affected by process number
|
||||
# limitations. This way a root console can always kill any
|
||||
# offending process, but an offending root process could
|
||||
# still block the system.
|
||||
#
|
||||
# Each line describes a limit for a user in the form:
|
||||
#
|
||||
# <domain> <type> <item> <value>
|
||||
|
||||
* soft nproc 1300
|
||||
* hard nproc 1800
|
||||
root - nproc infinity
|
||||
|
||||
5
app-misc/sablink-core/files/check.py
Normal file
5
app-misc/sablink-core/files/check.py
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from entropy.client.interfaces import Client
|
||||
cl = Client()
|
||||
print(len(cl.calculate_updates()[0]))
|
||||
3
app-misc/sablink-core/files/equo-update.cron
Normal file
3
app-misc/sablink-core/files/equo-update.cron
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
LC_ALL=en_US.UTF-8 equo update &> /dev/null
|
||||
35
app-misc/sablink-core/files/greeting.sh
Executable file
35
app-misc/sablink-core/files/greeting.sh
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
# asciiart genrator
|
||||
# http://www.network-science.de/ascii/ Font big for SabLink
|
||||
|
||||
#clear
|
||||
|
||||
COLOUR_LOGO="31"
|
||||
COLOUR_INFO1="32"
|
||||
COLOUR_INFO2="31"
|
||||
COLOUR_INFO3="37"
|
||||
|
||||
echo ''
|
||||
echo '[0;40mHello, welcome to [1;'${COLOUR_INFO1}';40m'$(uname -n)'[0;40m, running'
|
||||
echo '[0;'${COLOUR_LOGO}';40m _____ _ _ _ _ '
|
||||
echo '[0;'${COLOUR_LOGO}';40m / ____| | | | | (_) | | '
|
||||
echo '[0;'${COLOUR_LOGO}';40m| (___ __ _| |__ | | _ _ __ | | __'
|
||||
echo '[0;'${COLOUR_LOGO}';40m \___ \ / _` | ´_ \| | | | ´_ \| |/ /'
|
||||
echo '[0;'${COLOUR_LOGO}';40m ____) | (_| | |_) | |____| | | | | < '
|
||||
echo '[0;'${COLOUR_LOGO}';40m|_____/ \__,_|_.__/|______|_|_| |_|_|\_\'
|
||||
echo '[0;37;40m'
|
||||
|
||||
|
||||
echo '[1;'${COLOUR_INFO2}';40m'$(uname -s)' '$(uname -m)' '$(uname -r)' [0;40m(compiled [0;'${COLOUR_INFO3}';40m'$(uname -v)'[0;40m)'
|
||||
echo ''
|
||||
echo '[0;40mProcessor : [0;'${COLOUR_INFO1}';40m'$(cat /proc/cpuinfo | grep -i 'Processor' | cut -c 13-50 )''
|
||||
echo '[0;40mBogoMIPS : [0;'${COLOUR_INFO1}';40m'$(cat /proc/cpuinfo | grep -i 'BogoMIPS' | cut -c 12-50 | tr -d ' ')''
|
||||
echo '[0;40mRAM : [0;'${COLOUR_INFO1}';40m'$(free -m | grep -i 'Mem:' | cut -c 13-20)'[0;'${COLOUR_INFO3}';40mMB'
|
||||
echo '[0;40mSwap : [0;'${COLOUR_INFO1}';40m'$(free -m | grep -i 'Swap:' | cut -c 15-20)'[0;'${COLOUR_INFO3}';40mMB'
|
||||
echo '[0;40mUptime : [0;'${COLOUR_INFO3}';40m'$(uptime | cut -c 2-60)''
|
||||
echo '[0;40mLogged on as : [0;'${COLOUR_INFO1}';40m'$(whoami)'[0;40m on [0;'${COLOUR_INFO1}';40m'$(tty)'[0;'${COLOUR_INFO3}';40m since [0;'${COLOUR_INFO1}';40m'$(date)''
|
||||
echo '[0;40mUsers logged in : [0;'${COLOUR_INFO1}';40m'$(who -q | more +1)''
|
||||
echo ''
|
||||
echo '[0;40mPackage updates : [0;'${COLOUR_INFO1}';40m'$(sablink-equo-check)' available updates'
|
||||
echo ''
|
||||
Reference in New Issue
Block a user