瀏覽代碼

Fix setup for systems that do /use merge

Some distros (Debian testing) has /lib a symlink to /usr/lib and so cp -rB root/* / doesn't work. This should fix that.
tmarkov 6 年之前
父節點
當前提交
bef034f82b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      setup.sh

+ 1 - 1
setup.sh

@@ -32,7 +32,7 @@ read -rp "Press enter if this is correct, or CTRL-C to cancel." cont;echo
 echo "\nContinuing setup...\n"
 
 echo "Coping the config files under root to where they belong...\n"
-cp -Rb root/* /
+for dir in $(ls root/); do cp -Rb root/$dir/* /$dir/; done
 
 echo "Making /lib/systemd/system-sleep/sleep executable...\n"
 chmod a+x /lib/systemd/system-sleep/sleep