base-files: Create /run and /run/lock folder
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 14 Nov 2024 20:47:47 +0000 (21:47 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Sat, 16 Nov 2024 13:22:22 +0000 (14:22 +0100)
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@hauke-m.de>
Link: https://github.com/openwrt/openwrt/pull/16961
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/base-files/files/etc/init.d/boot

index c7d1d4af3ad375aff14e08156cde119ce3a8a815..332a5c96f35c95622e8c2191a7d47bc076bb79ca 100755 (executable)
@@ -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