From eb7fff99fc287ed76ed39a3d408006bbcf0aabd4 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Fri, 15 Feb 2013 19:15:11 +0100 Subject: [PATCH] backupiso: disable on arm (we have no iso). and fix syntax error. --- html/cgi-bin/backup.cgi | 10 ++++++++-- src/scripts/backupiso | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/html/cgi-bin/backup.cgi b/html/cgi-bin/backup.cgi index 8c93814964..830775ddf5 100644 --- a/html/cgi-bin/backup.cgi +++ b/html/cgi-bin/backup.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2005-2010 IPFire Team # +# Copyright (C) 2005-2013 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -176,7 +176,13 @@ print < $Lang::tr{'include logfiles'}
$Lang::tr{'exclude logfiles'}
- $Lang::tr{'generate iso'} +END +; +my $MACHINE=`uname -m`; +if ( ! ( $MACHINE =~ "arm" )) { + print" $Lang::tr{'generate iso'}
" +} +print < diff --git a/src/scripts/backupiso b/src/scripts/backupiso index 111a350301..30616a4a5a 100644 --- a/src/scripts/backupiso +++ b/src/scripts/backupiso @@ -19,7 +19,8 @@ if [ ! -e ${ISO} ] then echo "Fetching ${URL}${ISO}" wget --quiet -c ${URL}${ISO} -else +fi + echo "Fetching ${URL}${ISO}.md5" wget --quiet -O ${ISO}.md5 ${URL}${ISO}.md5 -- 2.39.2