From 1dcddba5f95a613fb4301c605c40e36f71294524 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Tue, 9 Apr 2024 10:48:21 +0400 Subject: [PATCH] cphosts() will be moved to dchr-bs --- run.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/run.sh b/run.sh index 8147ab3..5cb9e6e 100755 --- a/run.sh +++ b/run.sh @@ -26,19 +26,6 @@ setup () { mount -o bind /run "$1/run" } -cphosts () { - if ! [ -e "$1/etc/hosts" ] - then - echo '-- Copying hosts' - cp /etc/hosts "$1/etc/hosts" - fi - if ! [ -e "$1/etc/resolv.conf" ] - then - echo '-- Copying resolv.conf' - cp /etc/resolv.conf "$1/etc/resolv.conf" - fi -} - runcmd () { echo -e '-- \e[1;32mOK\e[0m -- running chroot' chroot "$1" "$2" @@ -58,7 +45,6 @@ main () { trap "clean $chrdir" EXIT setup "$chrdir" - cphosts "$chrdir" runcmd "$chrdir" "$chrcmd" exit $? }