From: Karel Zak Date: Tue, 30 Jun 2009 13:01:29 +0000 (+0200) Subject: docs: remove example.files/rc[.local] X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=113b9c9524fff76bcfa8f7afe741d597270769ab;p=util-linux docs: remove example.files/rc[.local] Yeah, example files for Linux 1.0.x :-) Signed-off-by: Karel Zak --- diff --git a/example.files/rc b/example.files/rc deleted file mode 100644 index 232afc35..00000000 --- a/example.files/rc +++ /dev/null @@ -1,79 +0,0 @@ -# rc file for The Linux BOGUS Release, version 1.0.1 - - echo "Running /etc/rc. . ." - -PATH=/sbin:/usr/sbin:/bin:/usr/bin; export PATH - -# Update (bdflush) performs flushes dirty buffers back to disk and -# performs a sync every 30 seconds. - echo "Starting update" -update & - -if [ -f /fastboot ] -then - echo "Skipping file system check" -else - echo "Performing file system check" - fsck -AV -a - # If there was a failure, drop into single-user mode. - # NOTE: This is not secure. If security is needed, make sure than - # /etc/securesingle exists and "reboot single". simipleinit - # will then prompt for root's password. - if [ $? -gt 1 ] - then - echo "Warning: fsck FAILED" - echo " Starting single user shell" - echo " Fix filesystem and REBOOT" - sh -si < /dev/console > /dev/console 2>&1 - fi -fi - - echo "Mounting file systems" -# Remount the root filesystem in read-write mode -mount -n -o rw,remount / - -# Remove the fastboot check file -rm -f /fastboot - -# Remove /etc/mtab* so mount creates the /etc/mtab file -rm -f /etc/mtab* - -# Mount all partitions specified in /etc/fstab -mount -avt nonfs,nomsdos,nohpfs - -# Mount swap partition specified in /etc/fstab -swapon -a - - echo -n "Initialization: " -# Update ps database -if [ -f /usr/sbin/psupdate -a -f /usr/src/linux/vmlinux ]; then - echo -n "psdatabase " - /usr/sbin/psupdate /usr/src/linux/vmlinux -fi - -# tmp and usr may be mounted, so we do these rm's after mount - echo -n "locks " -rm -f /var/lock/LCK* - echo -n "pids " -rm -f /var/run/* - echo -n "/tmp " -rm -rf /tmp; mkdir /tmp; chmod 1777 /tmp - -# Remove /var/adm/utmp and touch it - echo -n "utmp " -if [ ! -e /var ]; then mkdir /var; chmod 755 /var; fi -if [ ! -e /var/adm ]; then mkdir /var/adm; chmod 755 /var/adm; fi -rm -f /var/adm/utmp -touch /var/adm/utmp -chmod 644 /var/adm/utmp - - echo "" - echo "Running rc.local. . ." -sh /etc/rc.local - -# Allow logins - echo "Allowing logins" -rm -f /etc/nologin - -date -exit 0 diff --git a/example.files/rc.local b/example.files/rc.local deleted file mode 100644 index bf5fa11c..00000000 --- a/example.files/rc.local +++ /dev/null @@ -1,83 +0,0 @@ -# rc.local file for The Linux BOGUS Release, version 1.0.1 - - echo -n "Local initialization: " - -# Set the host name. You will probably want to change this. - echo -n "hostname " -hostname winter - -# Update the system time from the CMOS clock. -# This assume that the CMOS clock is in local time, and that you have the -# correct links in /usr/src/zoneinfo (see zic(8) for details. (For example, -# for the east coast of the US, do: zic -l US/Eastern -p America/NewYork) -# Note: mount /usr BEFORE running rc.local! - echo -n "clock " -clock -a - -# Set screen blanker to 5 minutes. - echo -n "screen-blanking " -setterm -blank 5 - -# Set modem for 57600 bps -if [ -e /dev/modem ] -then - echo -n "high-speed-modem " - setserial /dev/modem spd_hi -fi - -# Make CTRL-ALT-DEL do a controlled reboot (i.e., call reboot(8)) - echo -n "reboot " -ctrlaltdel soft - -# Preserve elvis files in case of a crash - echo -n "vi-files " -elvprsv "-the system went down" /tmp/elv_*.* - - echo - - - echo -n "Starting daemons: " - -# Make sure log files exist -if [ -d /var/adm ]; then - if [ ! -e /var/adm/kernlog ]; then touch /var/adm/kernlog; fi - if [ ! -e /var/adm/syslog ]; then touch /var/adm/syslog; fi - if [ ! -e /var/adm/maillog ]; then touch /var/adm/maillog; fi - if [ ! -e /var/adm/authlog ]; then touch /var/adm/authlog; fi - if [ ! -e /var/adm/news ]; then touch /var/adm/news; fi - if [ ! -e /var/adm/daemon ]; then touch /var/adm/daemon; fi - if [ ! -e /var/adm/lpd-errs ]; then touch /var/adm/lpd-errs; fi - if [ ! -e /var/adm/sysdebug ]; then touch /var/adm/sysdebug; fi - - # start up syslogd if it exists, but wait until AFTER HOSTNAME SET - if [ -f /usr/sbin/syslogd ]; then - echo -n "syslogd " - /usr/sbin/syslogd - fi -fi - -# Start up cron if it exists -if [ -f /usr/sbin/cron ] -then - echo -n "cron " - /usr/sbin/cron -fi - - echo - -# If you want networking turned on, then uncomment the following lines. -if [ -f /etc/NETWORKING_IS_ON ] -then - if [ -f /etc/rc.net ] - then - /bin/sh /etc/rc.net - fi -fi - - echo "Mounting foreign file systems" -mount -avt nfs,msdos,hpfs - -# Create a new issue file -echo > /etc/issue -echo "Welcome to `hostname`, an `uname -m` running BOGUS Release 1.0.1 `uname` `uname -r`" >> /etc/issue -echo >> /etc/issue