summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gmail.com>2010-10-25 03:42:41 +0200
committerDiego Elio Pettenò <flameeyes@gmail.com>2010-10-25 03:42:41 +0200
commit6d06e0c0fcacb82abeb211c4cabce7ac86fbde53 (patch)
tree22cf723ca6b22263268f34e906c0e5292c087cce
parentFetch _all_ distfiles, so that we know if the mirrors are missing (diff)
downloadflameeyes-tinderbox-6d06e0c0fcacb82abeb211c4cabce7ac86fbde53.tar.gz
flameeyes-tinderbox-6d06e0c0fcacb82abeb211c4cabce7ac86fbde53.tar.bz2
flameeyes-tinderbox-6d06e0c0fcacb82abeb211c4cabce7ac86fbde53.zip
If there is not a previous configuration file for the kernel, skip over it.
-rwxr-xr-xtinderbox-restart.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tinderbox-restart.sh b/tinderbox-restart.sh
index b44df3d..f9d37d0 100755
--- a/tinderbox-restart.sh
+++ b/tinderbox-restart.sh
@@ -83,13 +83,13 @@ fi
reset_emergelog
-cp /usr/src/linux/.config /usr/src/config
+[[ -f /usr/src/linux/.config ]] && cp /usr/src/linux/.config /usr/src/config
if emerge -u1 sys-kernel/gentoo-sources &&
fgrep -q '>>> emerge' /var/log/emerge.log; then
dent_me "new #gentoo-sources, making oldconfig"
- cp /usr/src/config /usr/src/linux/.config
+ [[ -f /usr/src/config ]] && cp /usr/src/config /usr/src/linux/.config
pushd /usr/src/linux
make -j14 oldconfig && \