JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr#!/usr/bin/perl # Upgrade all packages, or update the database of IPKG packages require './software-lib.pl'; &ReadParse(); # Work out what we are doing if ($in{'upgrade'}) { $cmd = "ipkg upgrade"; $mode = "upgrade"; } else { $cmd = "ipkg update"; $mode = "update"; } &ui_print_unbuffered_header(undef, $text{'IPKG_title_'.$mode}, ""); local $out; print "",&text('IPKG_updatedesc', "$cmd"),"

\n"; print "

";
&additional_log("exec", undef, $cmd);
&clean_environment();
open(CMD, "($cmd; ipkg list-upgradable) 2>&1 ) {
	print &html_escape($_);
	$out .= $_;
	}
print &html_escape("$text{'IPKG_noupgrade'}") if ($out eq "");
close(CMD);
&reset_environment();
print "
\n"; if ($?) { print "$text{'IPKG_upgradefailed'}

\n"; } else { print "$text{'IPKG_upgradeok'}

\n"; &webmin_log("IPKG", $mode) } &ui_print_footer("?tab=update", $text{'index_return'});