[PATCH 1/1] UBUNTU: make the init script LBM compliant

Tim Gardner tim.gardner at canonical.com
Thu Jun 11 11:41:11 BST 2009


Andy Whitcroft wrote:
> BugLink: http://bugs.launchpad.net/bugs/305587
> 
> Update the LRM init script to be LSB complient.  This includes adding a
> status mode to the script and the inclusion of the requisite LSB headers.
> 
> Signed-off-by: Andy Whitcroft <apw at canonical.com>
> ---
>  debian/linux-restricted-modules-common.init |    9 ++++++++-
>  1 files changed, 8 insertions(+), 1 deletions(-)
> 
> diff --git a/debian/linux-restricted-modules-common.init b/debian/linux-restricted-modules-common.init
> index 41a705f..3abb41f 100644
> --- a/debian/linux-restricted-modules-common.init
> +++ b/debian/linux-restricted-modules-common.init
> @@ -1,4 +1,11 @@
>  #!/bin/sh
> +### BEGIN INIT INFO
> +# Provides: linux-restricted-modules-common
> +# Required-Start: $local_fs
> +# Default-Start: S 0 6
> +# Short-Description: Setup the linux restricted modules
> +# Description: Link the linux restricted modules at run time.
> +### END INIT INFO
>  
>  test -x /sbin/lrm-manager || exit 0
>  
> @@ -14,7 +21,7 @@ case "$1" in
>  			exit $status
>  		fi
>  	;;
> -	stop|restart|reload|force-reload)
> +	stop|restart|reload|force-reload|status)
>  	;;
>  	*)
>  		echo "Usage: $0 {start}"

ACK
-- 
Tim Gardner tim.gardner at canonical.com



More information about the kernel-team mailing list