From: Arne Fitzenreiter Date: Fri, 15 Feb 2013 18:15:11 +0000 (+0100) Subject: backupiso: disable on arm (we have no iso). X-Git-Tag: v2.13-core66 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb7fff99fc287ed76ed39a3d408006bbcf0aabd4;p=people%2Fms%2Fipfire-2.x.git backupiso: disable on arm (we have no iso). and fix syntax error. --- 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