]> Zhao Yanbai Git Server - minix.git/commitdiff
added /sbin in mtree
authorBen Gras <ben@minix3.org>
Fri, 5 Aug 2005 10:37:02 +0000 (10:37 +0000)
committerBen Gras <ben@minix3.org>
Fri, 5 Aug 2005 10:37:02 +0000 (10:37 +0000)
/usr/etc/rc now reads variables from /usr/etc/rc.local it can feed to
drivers as args

etc/mtree/minix.tree
etc/usr/rc

index d9e056ba48b4e40ad69d8daa15e472ac59e6e8b2..aeb39b7f011088167d11226b0bc60d577b4db6b3 100644 (file)
@@ -1,5 +1,6 @@
 755 root    operator /
 755 bin     operator /bin
+755 bin     operator /sbin
 755 root    operator /dev
 755 root    operator /etc
 755 root    operator /lib
index 1aacef5ae5b32a0c570dfbb708a7c08f8bff128c..87d9ff47e3a5043ceb33ebd924d9c8521c7b86a8 100644 (file)
@@ -1,6 +1,7 @@
 # /usr/etc/rc - continued system initialization.
 
 RANDOM_FILE=/usr/adm/random.dat
+LOCAL_FILE=/usr/etc/rc.local
 
 case "$#:$1" in
 1:start|1:stop|1:down)
@@ -10,6 +11,10 @@ case "$#:$1" in
     exit 1
 esac
 
+if [ -f "$LOCAL_FILE" ]
+then   . "$LOCAL_FILE" $1
+fi
+
 disabled()
 {
     ifs="$IFS"; IFS=,
@@ -91,7 +96,8 @@ start)
     do
         if grep " $driver " /etc/inet.conf > /dev/null 
         then 
-            up $driver 
+            eval arg=\$${driver}_arg
+            up $driver "$arg"
         fi
     done
     up inet ""