Added rc.cd that gets executed when starting from CD.
This commit is contained in:
parent
6bfa44771e
commit
87732bd6e0
|
@ -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
4
etc/rc.cd
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd ~root || exit
|
||||
echo 'set dir=/tmp' >>.exrc
|
|
@ -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 .
|
||||
|
||||
|
|
Loading…
Reference in a new issue