Revision: 6500 http://ipcop.svn.sourceforge.net/ipcop/?rev=6500&view=rev Author: owes Date: 2012-03-20 21:05:28 +0000 (Tue, 20 Mar 2012) Log Message: ----------- Add logging to update section in case of error
Modified Paths: -------------- ipcop/trunk/src/scripts/mkinitramfs ipcop/trunk/updates/2.1.0/ROOTFILES.i486-2.1.0 Modified: ipcop/trunk/src/scripts/mkinitramfs =================================================================== --- ipcop/trunk/src/scripts/mkinitramfs 2012-03-20 17:13:34 UTC (rev 6499) +++ ipcop/trunk/src/scripts/mkinitramfs 2012-03-20 21:05:28 UTC (rev 6500) @@ -6,7 +6,7 @@ # # IPCop is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or +# the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # IPCop is distributed in the hope that it will be useful, @@ -15,10 +15,9 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with IPCop; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# along with IPCop. If not, see <http://www.gnu.org/licenses/>. # -# Copyright (C) 2007-2009, the IPCop team. +# Copyright (C) 2007-2012, the IPCop team. # # $Id$ # @@ -55,7 +54,7 @@ ############################################################################ -# This function shows a help message # +# This function shows a help message # ############################################################################ show_usage() { @@ -80,7 +79,7 @@ ############################################################################ -# This function just outputs the error message # +# This function just outputs the error message # ############################################################################ exiterror() { @@ -104,6 +103,9 @@ ERROR_CODE=129 fi + if [ -e /usr/bin/logger ]; then + /usr/bin/logger -t installpackage "mkinitramfs ERROR: ${ERROR_MESSAGE}" + fi echo "ERROR: ${ERROR_MESSAGE}" exit ${ERROR_CODE} } # End of exiterror() @@ -111,7 +113,7 @@ ############################################################################ -# This function outputs messages only in verbose mode # +# This function outputs messages only in verbose mode # ############################################################################ echo_me() { @@ -126,7 +128,7 @@ ############################################################################ # This function adds a module to the list of requested modules making sure # -# no modules are duplicated +# no modules are duplicated # ############################################################################ request_module() { @@ -141,7 +143,7 @@ ############################################################################ -# This function checks if a requested kernel module really exists # +# This function checks if a requested kernel module really exists # ############################################################################ check_module() { @@ -159,8 +161,8 @@ ############################################################################ -# This function finds all the dependencies of a module. # -# CAUTION: It runs recursively # +# This function finds all the dependencies of a module. # +# CAUTION: It runs recursively # ############################################################################ find_module_deps() { @@ -209,7 +211,7 @@ ############################################################################ -# This function creates the initramfs # +# This function creates the initramfs # ############################################################################ create_initramfs() { @@ -317,7 +319,7 @@ ############################################################################ -# This function installs the initramfs # +# This function installs the initramfs # ############################################################################ install_initramfs() { Modified: ipcop/trunk/updates/2.1.0/ROOTFILES.i486-2.1.0 =================================================================== --- ipcop/trunk/updates/2.1.0/ROOTFILES.i486-2.1.0 2012-03-20 17:13:34 UTC (rev 6499) +++ ipcop/trunk/updates/2.1.0/ROOTFILES.i486-2.1.0 2012-03-20 21:05:28 UTC (rev 6500) @@ -15,6 +15,7 @@ /home/httpd/cgi-bin/time.cgi /home/httpd/cgi-bin/urlfilter.cgi /home/httpd/html/images/redirect-background.png +/sbin/mkinitramfs /usr/lib/ipcop/general-functions.pl /usr/lib/ipcop/library.sh /usr/lib/ipcop/scheduler-lib.pl This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Ipcop-svn mailing list Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn