Code Sample |
1:12345:respawn:/bin/bash -login >/dev/tty1 2>&1 </dev/tty1 2:234:respawn:/bin/bash -login >/dev/tty2 2>&1 </dev/tty2 3:234:respawn:/bin/bash -login >/dev/tty3 2>&1 </dev/tty3 4:234:respawn:/bin/bash -login >/dev/tty4 2>&1 </dev/tty4 |
Code Sample |
1:12345:respawn:/sbin/getty 38400 tty1 2:2345:respawn:/sbin/getty 38400 tty2 3:2345:respawn:/sbin/getty 38400 tty3 4:2345:respawn:/sbin/getty 38400 tty4 |
Code Sample |
telinit q |
Code Sample |
5:2345:respawn:/sbin/getty 38400 tty5 6:2345:respawn:/sbin/getty 38400 tty6 |
Code Sample |
if egrep -q " log" /proc/cmdline 2>/dev/null; then chmod 644 /var/log/messages syslogd fi |
Code Sample |
ln -sf .xinitrc.twm .xinitrc && startx |
Code Sample |
export wm=evilwm && startx |
Code Sample |
wm=evil startx |
Code Sample |
CMDLINE=`cat /proc/cmdline` . /etc/init.d/dsl-functions if [ -n "$wm" ]; then WINDOWMANAGER="$wm" else WINDOWMANAGER=`getbootparam wm` fi case $WINDOWMANAGER in evil*) root-tail --noinitial --font snap -f --color red4 --whole --cont ........ --cont-color black -g 512x384+4+0 \ ${HOME}/WM.log,red4,'general' \ /var/log/messages,orange4,'messages' & bsetbg -f $HOME/.fluxbox/backgrounds/thinklinux1024.jpg WM=/opt/evilwm/evilwm ;; wmi*) WM=/opt/wmii/bin/wmii ;; *dev|*devel) WM=/opt/fluxbox_0.9.14/bin/fluxbox wmix &>/dev/null & monto &>/dev/null & ;; *) WM=fluxbox wmix &>/dev/null & monto &>/dev/null & ;; esac exec $WM &>$HOME/WM.log |
Code Sample |
rm -rf /{,ramdisk/}{home,opt} mkdir /{home,opt} mount --bind /cdrom/home /home mount --bind /cdrom/opt /opt |
Code Sample |
rm -rf /{,ramdisk/}home mkdir /home mount --bind /cdrom/home /home |