base-files: soft link resolv file to /tmp to compatible with some plugins

This commit is contained in:
CN_SZTL 2020-03-22 01:17:33 +08:00
parent 318b2efa15
commit 1994012b22
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -33,6 +33,7 @@ boot() {
touch /var/log/lastlog
mkdir -p /tmp/resolv.conf.d
touch /tmp/resolv.conf.d/resolv.conf.auto
ln -sf /tmp/resolv.conf.d/resolv.conf.auto /tmp/resolv.conf.auto
ln -sf /tmp/resolv.conf.d/resolv.conf.auto /tmp/resolv.conf
grep -q debugfs /proc/filesystems && /bin/mount -o noatime -t debugfs debugfs /sys/kernel/debug
[ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe