diff options
| author | Hauke Mehrtens | 2024-11-14 20:47:47 +0000 |
|---|---|---|
| committer | Petr Štetiar | 2024-11-28 18:47:21 +0000 |
| commit | 71d60c69836de7543e86fddb60e8c3eba05ef50e (patch) | |
| tree | c13ecf1bd10c3811022280e5175c2219c4ef4d5f | |
| parent | 756c955a9ca129b55e2b06ac6dab487373d867c7 (diff) | |
| download | openwrt-71d60c69836de7543e86fddb60e8c3eba05ef50e.tar.gz | |
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@hauke-m.de>
Link: https://github.com/openwrt/openwrt/pull/16961
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 3b710375dd97af1e0416904c4174d11c51e3f09c)
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz>
| -rwxr-xr-x | package/base-files/files/etc/init.d/boot | 2 |
1 files changed, 2 insertions, 0 deletions
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 |