Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Joel Soete <soete.joel@tiscali.be>
To: parisc-linux <parisc-linux@lists.parisc-linux.org>
Cc: Joel Soete <jsoete@morethan.org>
Subject: Re: [parisc-linux] kernel install.sh patch/enhancement?
Date: Sat, 04 Feb 2006 18:15:13 +0000	[thread overview]
Message-ID: <43E4EF31.3080300@tiscali.be> (raw)
In-Reply-To: <ITJYTG$104D92B447D6B504FB5F1167C1BF3EF1@scarlet.be>

Hello pa*,


Joel Soete wrote:
> Hello pa*,
> 
> Just some small hunck to (I hope) improve our kernel install.sh.
> 
snip
> 2/ append kernel version to filename (as many other arch too):
> --- arch/parisc/install.sh.Orig 2006-01-23 14:30:17.000000000 +0100
> +++ arch/parisc/install.sh      2006-01-23 15:30:30.000000000 +0100
snip
> @@ -44,13 +47,18 @@
>  
>  # Default install
>  
> -if [ -f $4/vmlinux ]; then
> -       mv $4/vmlinux $4/vmlinux.old
> +if [ -f $4/vmlinux-$1 ]; then
> +       mv $4/vmlinux-$1 $4/vmlinux.old
> +fi
> +
> +if [ -f $4/System.map-$1 ]; then
> +       mv $4/System.map-$1 $4/System.old
>  fi
>  
> -if [ -f $4/System.map ]; then
> -       mv $4/System.map $4/System.old
> +if [ -f $4/config-$1 ]; then
> +       mv $4/config-$1 $4/config.old
>  fi
>  
> -cat $2 > $4/vmlinux
> -cp $3 $4/System.map
> +cat $2 > $4/vmlinux-$1
> +cp $3 $4/System.map-$1
> +cp .config $4/config-$1
> 
> 3/ my paranoid check (because by /boot is a fs usualy mounted in ro, as I
> presume most of sysadm ;-?) 
> --- arch/parisc/install.sh.Orig 2006-01-23 15:32:42.000000000 +0100
> +++ arch/parisc/install.sh      2006-01-23 15:57:24.000000000 +0100
snip
> @@ -62,3 +82,13 @@
>  cat $2 > $4/vmlinux-$1
>  cp $3 $4/System.map-$1
>  cp .config $4/config-$1
> +
> +if [ -h $4/vmlinux ]; then
> +       mv $4/vmlinux $4/vmlinux.prev
> +       ln -sf $4/vmlinux-$1 $4/vmlinux
> +fi
> +
> +if [ -h $4/System.map ]; then
> +       mv $4/System.map $4/System.prev
> +       ln -sf $4/System.map-$1 $4/System.map
> +fi
> ====<>====
> 
There was obviously some small bugs in those to hunk which I change like:
--- arch/parisc/install.sh.Orig 2006-02-03 14:34:17.000000000 +0100
+++ arch/parisc/install.sh      2006-02-03 14:17:12.000000000 +0100
@@ -68,27 +68,29 @@
  # Default install

  if [ -f $4/vmlinux-$1 ]; then
-       mv $4/vmlinux-$1 $4/vmlinux.old
+       mv $4/vmlinux-$1 $4/vmlinux-$1.old
  fi

  if [ -f $4/System.map-$1 ]; then
-       mv $4/System.map-$1 $4/System.old
+       mv $4/System.map-$1 $4/System.map-$1.old
  fi

  if [ -f $4/config-$1 ]; then
-       mv $4/config-$1 $4/config.old
+       mv $4/config-$1 $4/config-1$.old
  fi

  cat $2 > $4/vmlinux-$1
  cp $3 $4/System.map-$1
  cp .config $4/config-$1

-if [ -h $4/vmlinux ]; then
-       mv $4/vmlinux $4/vmlinux.prev
-       ln -sf $4/vmlinux-$1 $4/vmlinux
+cd $4
+if [ -h vmlinux ]; then
+       mv vmlinux vmlinux.prev
+       ln -sf vmlinux-$1 vmlinux
  fi

-if [ -h $4/System.map ]; then
-       mv $4/System.map $4/System.prev
-       ln -sf $4/System.map-$1 $4/System.map
+if [ -h System.map ]; then
+       mv System.map System.map.prev
+       ln -sf System.map-$1 System.map
  fi
+cd -
====<>====

Tx,
     Joel
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

      reply	other threads:[~2006-02-04 18:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-23 15:53 [parisc-linux] kernel install.sh patch/enhancement? Joel Soete
2006-02-04 18:15 ` Joel Soete [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43E4EF31.3080300@tiscali.be \
    --to=soete.joel@tiscali.be \
    --cc=jsoete@morethan.org \
    --cc=parisc-linux@lists.parisc-linux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox