Merge remote-tracking branch 'flapflap/de-network_configuration'
[tails-test.git] / config / chroot_local-includes / usr / local / bin / tails-boot-to-kexec
blobef8ac218fdcbb2bf1b2b0acf2a56fe87f1aabc05
1 #!/bin/sh
3 running_amd64_kernel() {
4 uname -r | grep -qs 'amd64$'
7 case "$1" in
8 kernel)
9 boot_kernel="$2"
10 if running_amd64_kernel ; then
11 echo "$boot_kernel" | sed -e 's,/vmlinuz$,/vmlinuz2,'
12 else
13 echo "$boot_kernel"
16 initrd)
17 boot_initrd="$2"
18 if running_amd64_kernel ; then
19 echo "$boot_initrd" | sed -e 's,/initrd\.img$,/initrd2.img,'
20 else
21 echo "$boot_initrd"
25 echo "Usage: $0 kernel|initrd" >&2
26 exit 3
27 esac
29 exit 0