Re: rc.local?


Subject: Re: rc.local?
From: Aake Svensson (aakesve@algonet.se)
Date: Sat Sep 01 2001 - 00:12:03 MDT


Thanks a bunch! Now I can get things back to normal again without reinstalling!

Best Regards,

Aake

>$ more rc.local
>#!/bin/sh
>#
># This script will be executed *after* all the other init scripts.
># You can put your own initialization stuff in here if you don't
># want to do the full Sys V style init stuff.
>
>if [ -f /etc/yellowdog-release ]; then
> R=$(cat /etc/yellowdog-release)
>
> k=$(uname -r)
>
> arch=$(uname -m)
> a="a"
> case "_$arch" in
> _a*) a="an";;
> _i*) a="an";;
> esac
>
> NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat`
> if [ "$NUMPROC" -gt "1" ]; then
> SMP="$NUMPROC-processor "
> if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then
> a="an"
> else
> a="a"
> fi
> fi
>
> # This will overwrite /etc/issue at every boot. So, make any changes you
> # want to make to /etc/issue here or you will lose them when you reboot.
> echo "" > /etc/issue
> echo "$R" >> /etc/issue
> echo "Kernel $k on $a $arch (\l)" >> /etc/issue
> echo >> /etc/issue
>
> touch /etc/issue.net
> #cp -f /etc/issue /etc/issue.net
>fi
>
> - matthewk
>
>On Sat, 1 Sep 2001, Aake Svensson wrote:
>
>|->>Hi!
>|->>
>|->>As a newbie I managed to destroy my initial 'rc.local' file. Can
>|->>some kind soul post the code for a standard rc.local file(or non
>|->>standard)? It would be much appreciated!
>|->
>|->
>|->
>|->>Regards,
>|->Aake Svensson
>|->



This archive was generated by hypermail 2a24 : Fri Aug 31 2001 - 23:29:14 MDT