use $(LIBENSCVECTOR) instead of libensc_vector.a
[util-vserver.git] / util-vserver / distrib / redhat / initpost
index 7293351..0f1fee3 100755 (executable)
@@ -15,6 +15,8 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
+## HACK: this script is full of races...
+
 vdir=$1/vdir
 . "$2"
 
@@ -65,9 +67,9 @@ popd >/dev/null
 pushd "$vdir" &>/dev/null
     : | $_CHROOT_CAT /etc/sysctl.conf
     echo "none    /       none    defaults" | $_CHROOT_CAT /etc/fstab
-    cat "$DISTRIBDIR"/redhat/rc.sysinit     | $_CHROOT_CAT /etc/rc.d/rc.sysinit.vserver
+    cat "$__DISTRIBDIR"/redhat/rc.sysinit   | $_CHROOT_CAT /etc/rc.d/rc.sysinit.vserver
     # TODO: remove race/symlink-attack
     chmod +x etc/rc.d/rc.sysinit.vserver
-    subst /etc/inittab 's!^\([^#].*:respawn:.* tty\)!#\1!;
-                       s!si::sysinit:/etc/rc.d/rc.sysinit!si::sysinit:/etc/rc.d/rc.sysinit.vserver!'
+    subst etc/inittab 's!^\([^#].*:respawn:.* tty\)!#\1!;
+                      s!si::sysinit:/etc/rc.d/rc.sysinit!si::sysinit:/etc/rc.d/rc.sysinit.vserver!'
 popd >/dev/null