19.04.2024, 01:47 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]
Letzte Änderung am 2006-09-22 15:03:37 von bluewater Due to possible conflicts, should an init script from kanotix and/or debian change it has been reco

Erweiterungen:


Löschungen:
Due to possible conflicts, should an init script from kanotix and/or debian change it has been recommened that this page be deleted
Thanks to Stefan Schweizer (aka stef) for the original script it was good work!



Editiert am 2006-09-22 14:55:10 von bluewater

Erweiterungen:
Due to possible conflicts, should an init script from kanotix and/or debian change it has been recommened that this page be deleted


Löschungen:
Due to possible conflictsshould an init script from kanotix and/or debian change it has been recommened that this page be deleted



Editiert am 2006-09-22 14:54:43 von bluewater

Erweiterungen:
Due to possible conflictsshould an init script from kanotix and/or debian change it has been recommened that this page be deleted
Thanks to Stefan Schweizer (aka stef) for the original script it was good work!


Löschungen:
Due to possible conflicts if an init script from kanotix and/or debian changes it has been recommened that this page be deleted
Thanks to Stefan Schweizer (aka stef) for the original script good work!



Editiert am 2006-09-22 14:49:35 von bluewater

Erweiterungen:
Due to possible conflicts if an init script from kanotix and/or debian changes it has been recommened that this page be deleted
Thanks to Stefan Schweizer (aka stef) for the original script good work!


Löschungen:
Thanks to Stefan Schweizer (aka stef) for the script. Simply paste the code below into a script called, say, color-boot.sh. Next set it executable and run it in a console, as follows:
$ sux
$ <root password>
# chmod +x color-boot.sh
# ./color-boot.sh
#Note: # indicates logged in as root. In the script below, it's a comment.

Now for the script, color-boot.sh:
#/bin/sh
# Improve the eyecandy by graphical boot
# . are replaced by [ OK ] and ok is moved to the right
# * is displayed before starting the service
# if not starting or fail ! and !! is displayed, but you cannot rely on it for now
#
# Stefan Schweizer stefan-schweizer@gmx.de
# Licence: GPL
#
#
perl -pi -e 's|\"([^*]*)(Not starting)|\"\e[1;31m ! \e[0m\2|' /etc/init.d/*
perl -pi -e "s|\'([^*]*)(Not starting)|\'\e[1;31m ! \e[0m\2|" /etc/init.d/*
perl -pi -e 's/\"([^*]*)(Starting|Restarting|Loading|Running|Reloading|Restoring|Setting|Stopping|Shutting|Storing|Cleaning|Creating|Continuing|Mounting|Trying)/\"\e[1;32m * \e[0m\2/' /etc/init.d/*
perl -pi -e "s/\'([^*]*)(Starting|Restarting|Loading|Running|Reloading|Restoring|Setting|Stopping|Shutting|Storing|Cleaning|Creating|Continuing|Mounting|Trying)/\'\e[1;32m * \e[0m\2/" /etc/init.d/*
perl -pi -e 's/(\s)(echo|printf|msg)([^\.]*(not|fail)[^\.]*)\.+(")([^>]*$)/\1\2\3\5; echo "\x60\x2fbin\x2fokfail fail\x60" \6/' /etc/init.d/*
perl -pi -e "s/(\s)(echo|printf|msg)([^\.]*(not|fail)[^\.]*)\.+(')([^>]*$)/\1\2\3\5; echo '\x60\x2fbin\x2fokfail fail\x60' \6/" /etc/init.d/*
perl -pi -e 's/(\s)(echo|printf|msg)([^\.]*)\.+(")([^>]*$)/\1\2\3\4; echo "\x60\x2fbin\x2fokfail ok\x60" \5/' /etc/init.d/*
perl -pi -e "s/(\s)(echo|printf|msg)([^\.]*)\.+(')([^>]*$)/\1\2\3\4; echo '\x60\x2fbin\x2fokfail ok\x60' \5/" /etc/init.d/*
cat > /bin/okfail << EOF
getcols() {
echo "\$2";
}
if [ "\$1" = "fail" ]; then
IN="31m!!";
else
IN="32mok";
fi
COLS="60stty size 2> /dev/null60";
COLS="60getcols \${COLS}60";
COLS=\$((\${COLS} - 7));
echo -e "\e[A\e[\${COLS}G\e[1;34m  [ \e[1;\$IN \e[1;34m]\e[0m";
EOF
perl -pi -e "s/60/\`/" /bin/okfail
perl -pi -e "s/60/\`/" /bin/okfail
chmod +x /bin/okfail



Editiert am 2006-08-07 23:05:51 von Richard

Erweiterungen:
#Note: # indicates logged in as root. In the script below, it's a comment.%%

Löschungen:
Note: # indicates logged in as root here. Below, in the script, it's a comment.%%


Editiert am 2006-08-07 23:04:58 von Richard

Erweiterungen:
$ sux
# ./color-boot.sh
Note: # indicates logged in as root here. Below, in the script, it's a comment.


Löschungen:
!!(red)$ sux
# ./color-boot.sh!!



Editiert am 2006-08-07 23:03:53 von Richard proofing

Erweiterungen:
Thanks to Stefan Schweizer (aka stef) for the script. Simply paste the code below into a script called, say, color-boot.sh. Next set it executable and run it in a console, as follows:
!!(red)$ sux
$ <root password>
# chmod +x color-boot.sh
# ./color-boot.sh!!

Now for the script, color-boot.sh:


Löschungen:
Thanks to Stefan Schweizer (aka stef) for the script. Simply paste the code below into a script called, say, color-boot.sh. Next set it executable and run it: sux
<root password>
chmod +x color-boot.sh
./color-boot.sh

Now for the script:




Editiert am 2006-06-19 18:48:37 von cokeinthebottle

Erweiterungen:
Thanks to Stefan Schweizer (aka stef) for the script. Simply paste the code below into a script called, say, color-boot.sh. Next set it executable and run it: sux <root password>
chmod +x color-boot.sh
./color-boot.sh


Now for the script:


#/bin/sh
# Improve the eyecandy by graphical boot
# . are replaced by [ OK ] and ok is moved to the right
# * is displayed before starting the service
# if not starting or fail ! and !! is displayed, but you cannot rely on it for now
#
# Stefan Schweizer stefan-schweizer@gmx.de
# Licence: GPL
#
#
perl -pi -e 's|\"([^*]*)(Not starting)|\"\e[1;31m ! \e[0m\2|' /etc/init.d/*
perl -pi -e "s|\'([^*]*)(Not starting)|\'\e[1;31m ! \e[0m\2|" /etc/init.d/*
perl -pi -e 's/\"([^*]*)(Starting|Restarting|Loading|Running|Reloading|Restoring|Setting|Stopping|Shutting|Storing|Cleaning|Creating|Continuing|Mounting|Trying)/\"\e[1;32m * \e[0m\2/' /etc/init.d/*
perl -pi -e "s/\'([^*]*)(Starting|Restarting|Loading|Running|Reloading|Restoring|Setting|Stopping|Shutting|Storing|Cleaning|Creating|Continuing|Mounting|Trying)/\'\e[1;32m * \e[0m\2/" /etc/init.d/*
perl -pi -e 's/(\s)(echo|printf|msg)([^\.]*(not|fail)[^\.]*)\.+(")([^>]*$)/\1\2\3\5; echo "\x60\x2fbin\x2fokfail fail\x60" \6/' /etc/init.d/*
perl -pi -e "s/(\s)(echo|printf|msg)([^\.]*(not|fail)[^\.]*)\.+(')([^>]*$)/\1\2\3\5; echo '\x60\x2fbin\x2fokfail fail\x60' \6/" /etc/init.d/*
perl -pi -e 's/(\s)(echo|printf|msg)([^\.]*)\.+(")([^>]*$)/\1\2\3\4; echo "\x60\x2fbin\x2fokfail ok\x60" \5/' /etc/init.d/*
perl -pi -e "s/(\s)(echo|printf|msg)([^\.]*)\.+(')([^>]*$)/\1\2\3\4; echo '\x60\x2fbin\x2fokfail ok\x60' \5/" /etc/init.d/*



cat > /bin/okfail << EOF
getcols() {
echo "\$2";
}
if [ "\$1" = "fail" ]; then
IN="31m!!";
else
IN="32mok";
fi
COLS="60stty size 2> /dev/null60";
COLS="60getcols \${COLS}60";
COLS=\$((\${COLS} - 7));
echo -e "\e[A\e[\${COLS}G\e[1;34m  [ \e[1;\$IN \e[1;34m]\e[0m";
EOF
perl -pi -e "s/60/\`/" /bin/okfail
perl -pi -e "s/60/\`/" /bin/okfail
chmod +x /bin/okfail


Löschungen:
Thanks to Stefan Schweizer (aka stef) for the script. Simply paste the code below into a script called, say, color-boot.sh. Next set it executable and run it: sux
<root password>
chmod +x color-boot.sh
./color-boot.sh


Now for the script:


:code:(php)
#/bin/sh
# Improve the eyecandy by graphical boot
# . are replaced by [ OK ] and ok is moved to the right
# * is displayed before starting the service
# if not starting or fail ! and !! is displayed, but you cannot rely on it for now
#
# Stefan Schweizer stefan-schweizer@gmx.de
# Licence: GPL
#
#
perl -pi -e 's|\"([^*]*)(Not starting)|\"\e[1;31m ! \e[0m\2|' /etc/init.d/*
perl -pi -e "s|\'([^*]*)(Not starting)|\'\e[1;31m ! \e[0m\2|" /etc/init.d/*
perl -pi -e 's/\"([^*]*)(Starting|Restarting|Loading|Running|Reloading|Restoring|Setting|Stopping|Shutting|Storing|Cleaning|Creating|Continuing|Mounting|Trying)/\"\e[1;32m * \e[0m\2/' /etc/init.d/*
perl -pi -e "s/\'([^*]*)(Starting|Restarting|Loading|Running|Reloading|Restoring|Setting|Stopping|Shutting|Storing|Cleaning|Creating|Continuing|Mounting|Trying)/\'\e[1;32m * \e[0m\2/" /etc/init.d/*
perl -pi -e 's/(\s)(echo|printf|msg)([^\.]*(not|fail)[^\.]*)\.+(")([^>]*$)/\1\2\3\5; echo "\x60\x2fbin\x2fokfail fail\x60" \6/' /etc/init.d/*
perl -pi -e "s/(\s)(echo|printf|msg)([^\.]*(not|fail)[^\.]*)\.+(')([^>]*$)/\1\2\3\5; echo '\x60\x2fbin\x2fokfail fail\x60' \6/" /etc/init.d/*
perl -pi -e 's/(\s)(echo|printf|msg)([^\.]*)\.+(")([^>]*$)/\1\2\3\4; echo "\x60\x2fbin\x2fokfail ok\x60" \5/' /etc/init.d/*
perl -pi -e "s/(\s)(echo|printf|msg)([^\.]*)\.+(')([^>]*$)/\1\2\3\4; echo '\x60\x2fbin\x2fokfail ok\x60' \5/" /etc/init.d/*



cat > /bin/okfail
EOF
getcols() {
echo "\$2";
}
if [ "\$1" = "fail" ]; then
IN="31m!!";
else
IN="32mok";
fi
COLS="60stty size 2> /dev/null60?";
COLS="60getcols \${COLS}60";
COLS=\$- 7;
echo -e "\e[A\e[\${COLS}G\e[1;34m [ \e[1;\$IN \e[1;34m]\e[0m";
EOF
perl -pi -e "s/60/\`/" /bin/okfail
perl -pi -e "s/60/\`/" /bin/okfail
chmod +x /bin/okfail
:code:


älteste bekannte Version dieser Seite wurde bearbeitet am 2005-06-28 12:19:00 von SeverinM [ ]

Thanks to Stefan Schweizer (aka stef) for the script. Simply paste the code below into a script called, say, color-boot.sh. Next set it executable and run it: sux
<root password>
chmod +x color-boot.sh
./color-boot.sh


Now for the script:


:code:(php)
#/bin/sh
# Improve the eyecandy by graphical boot
# . are replaced by [ OK ] and ok is moved to the right
# * is displayed before starting the service
# if not starting or fail ! and !! is displayed, but you cannot rely on it for now
#
# Stefan Schweizer stefan-schweizer@gmx.de
# Licence: GPL
#
#
perl -pi -e 's|\"([^*]*)(Not starting)|\"\e[1;31m ! \e[0m\2|' /etc/init.d/*
perl -pi -e "s|\'([^*]*)(Not starting)|\'\e[1;31m ! \e[0m\2|" /etc/init.d/*
perl -pi -e 's/\"([^*]*)(Starting|Restarting|Loading|Running|Reloading|Restoring|Setting|Stopping|Shutting|Storing|Cleaning|Creating|Continuing|Mounting|Trying)/\"\e[1;32m * \e[0m\2/' /etc/init.d/*
perl -pi -e "s/\'([^*]*)(Starting|Restarting|Loading|Running|Reloading|Restoring|Setting|Stopping|Shutting|Storing|Cleaning|Creating|Continuing|Mounting|Trying)/\'\e[1;32m * \e[0m\2/" /etc/init.d/*
perl -pi -e 's/(\s)(echo|printf|msg)([^\.]*(not|fail)[^\.]*)\.+(")([^>]*$)/\1\2\3\5; echo "\x60\x2fbin\x2fokfail fail\x60" \6/' /etc/init.d/*
perl -pi -e "s/(\s)(echo|printf|msg)([^\.]*(not|fail)[^\.]*)\.+(')([^>]*$)/\1\2\3\5; echo '\x60\x2fbin\x2fokfail fail\x60' \6/" /etc/init.d/*
perl -pi -e 's/(\s)(echo|printf|msg)([^\.]*)\.+(")([^>]*$)/\1\2\3\4; echo "\x60\x2fbin\x2fokfail ok\x60" \5/' /etc/init.d/*
perl -pi -e "s/(\s)(echo|printf|msg)([^\.]*)\.+(')([^>]*$)/\1\2\3\4; echo '\x60\x2fbin\x2fokfail ok\x60' \5/" /etc/init.d/*



cat > /bin/okfail
EOF
getcols() {
echo "\$2";
}
if [ "\$1" = "fail" ]; then
IN="31m!!";
else
IN="32mok";
fi
COLS="60stty size 2> /dev/null60?";
COLS="60getcols \${COLS}60";
COLS=\$- 7;
echo -e "\e[A\e[\${COLS}G\e[1;34m [ \e[1;\$IN \e[1;34m]\e[0m";
EOF
perl -pi -e "s/60/\`/" /bin/okfail
perl -pi -e "s/60/\`/" /bin/okfail
chmod +x /bin/okfail
:code:
Letzte Revision :
Letzter Editor :
Eigentümer :
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.