diff options
author | John Crispin <blogic@openwrt.org> | 2014-06-20 13:41:08 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-06-20 13:41:08 +0000 |
commit | 41094c6122279fcdcb6bd9157fef1292ff805e36 (patch) | |
tree | 1c66c245f6c296823274dab86f68c7206afac3da /package/base-files | |
parent | 7dcf285ab0c0638900530051e599cd5db163aa42 (diff) | |
download | master-187ad058-41094c6122279fcdcb6bd9157fef1292ff805e36.tar.gz master-187ad058-41094c6122279fcdcb6bd9157fef1292ff805e36.tar.bz2 master-187ad058-41094c6122279fcdcb6bd9157fef1292ff805e36.zip |
base-files: regenerate the /lib64 symlink when switching to a ramdisk
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41284 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rw-r--r-- | package/base-files/files/lib/upgrade/common.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 2e92b5a0a3..b641f55156 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -76,6 +76,8 @@ run_ramfs() { # <command> [...] done install_file /etc/resolv.conf /lib/functions.sh /lib/functions/*.sh /lib/upgrade/*.sh $RAMFS_COPY_DATA + [ -L "/lib64" ] && ln -s /lib $RAM_ROOT/lib64 + supivot $RAM_ROOT /mnt || { echo "Failed to switch over to ramfs. Please reboot." exit 1 |