[openwrt/openwrt] base-files: Create /run and /run/lock folder

LEDE Commits lede-commits at lists.infradead.org
Sat Nov 16 05:22:43 PST 2024


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/3b710375dd97af1e0416904c4174d11c51e3f09c

commit 3b710375dd97af1e0416904c4174d11c51e3f09c
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Thu Nov 14 21:47:47 2024 +0100

    base-files: Create /run and /run/lock folder
    
    Create the folder /run and /run/lock using symlinks. Other Linux
    distributions also have these folders and some applications might already
    depend on them. Just create symlinks pointing to the older folder.
    
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
    Link: https://github.com/openwrt/openwrt/pull/16961
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 package/base-files/files/etc/init.d/boot | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index c7d1d4af3a..332a5c96f3 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -24,6 +24,8 @@ boot() {
 	chmod 1777 /var/lock
 	mkdir -p /var/log
 	mkdir -p /var/run
+	ln -s /var/run /run
+	ln -s /var/lock /run/lock
 	mkdir -p /var/state
 	mkdir -p /var/tmp
 	mkdir -p /tmp/.uci




More information about the lede-commits mailing list