Added rc.cd that gets executed when starting from CD.
This commit is contained in:
parent
6bfa44771e
commit
87732bd6e0
3 changed files with 7 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
ETC=/etc/
|
ETC=/etc/
|
||||||
USRETC=/usr/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
|
FILES2=shadow
|
||||||
FILES3=daily dhcptags.conf rc
|
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
|
# start only network drivers that are in use
|
||||||
for driver in rtl8139 fxp dpeth dp8390
|
for driver in rtl8139 fxp dpeth dp8390
|
||||||
do
|
do
|
||||||
if grep " $driver " /etc/inet.conf > /dev/null
|
if grep " $driver " /etc/inet.conf > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
eval arg=\$${driver}_arg
|
eval arg=\$${driver}_arg
|
||||||
up $driver "$arg"
|
up $driver "$arg"
|
||||||
|
@ -116,6 +116,7 @@ start)
|
||||||
# (and cron unnecessary then so..)
|
# (and cron unnecessary then so..)
|
||||||
if [ ! -f /CD ]
|
if [ ! -f /CD ]
|
||||||
then daemonize cron
|
then daemonize cron
|
||||||
|
else . /etc/rc.cd
|
||||||
fi
|
fi
|
||||||
echo .
|
echo .
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue