浏览代码

Fix regression when enabling rc.d script

Mikael Magnusson 7 年之前
父节点
当前提交
552543d717
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      build_rootfs.sh

+ 1 - 1
build_rootfs.sh

@@ -77,7 +77,7 @@ add_file() {
 	if [ "$foo" = "./etc/init.d" ]; then
 	    echo Enabling $file
 	    set +e
-	    sh $instroot/etc/rc.common $src enable
+	    env IPKG_INSTROOT=$instroot sh $instroot/etc/rc.common $dst enable
 	    set -e
 	fi
     fi