Added rc.cd that gets executed when starting from CD.

This commit is contained in:
Ben Gras 2005-08-24 07:33:13 +00:00
parent 6bfa44771e
commit 87732bd6e0
3 changed files with 7 additions and 2 deletions

View file

@ -1,7 +1,7 @@
ETC=/etc/
USRETC=/usr/etc/
FILES1=fstab group hostname.file inet.conf motd mtab passwd profile protocols rc services termcap ttytab utmp
FILES1=fstab group hostname.file inet.conf motd mtab passwd profile protocols rc services termcap ttytab utmp rc.cd
FILES2=shadow
FILES3=daily dhcptags.conf rc

4
etc/rc.cd Normal file
View file

@ -0,0 +1,4 @@
#!/bin/sh
cd ~root || exit
echo 'set dir=/tmp' >>.exrc

View file

@ -94,7 +94,7 @@ start)
# start only network drivers that are in use
for driver in rtl8139 fxp dpeth dp8390
do
if grep " $driver " /etc/inet.conf > /dev/null
if grep " $driver " /etc/inet.conf > /dev/null 2>&1
then
eval arg=\$${driver}_arg
up $driver "$arg"
@ -116,6 +116,7 @@ start)
# (and cron unnecessary then so..)
if [ ! -f /CD ]
then daemonize cron
else . /etc/rc.cd
fi
echo .