Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 209283 Details for
Bug 291925
Genkernel doesn't add tuxoniceui_text or _fbsplash to initrd image
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Simple BASH script to patch up genkernel's initrd under TuxOnIce CONFIG_TOI_USERUI=y.
tuxoniceui_initramfs_modify.sh (text/plain), 1.05 KB, created by
Clemmitt M. Sigler
on 2009-11-04 22:22:38 UTC
(
hide
)
Description:
Simple BASH script to patch up genkernel's initrd under TuxOnIce CONFIG_TOI_USERUI=y.
Filename:
MIME Type:
Creator:
Clemmitt M. Sigler
Created:
2009-11-04 22:22:38 UTC
Size:
1.05 KB
patch
obsolete
>#!/bin/bash ># ># Quick shell script to automatically patch the genkernel-produced initramfs ># file in order to hibernate/resume using /sbin/tuxoniceui_text (or ># /sbin/tuxoniceui_fbsplash) in this initrd image ># >if [ $# -ne 1 ]; then > echo "Usage: $0 initramfs-genkernel-x86-2.x.xx-tuxonice[-rx]" > exit 1 >fi >echo "\"${1}\"" >if [[ "${1}" =~ initramfs-genkernel-x86-2\.[0-9]+\.[0-9]+-tuxonice.* ]]; then > echo -n >else > echo "Usage: $0 initramfs-genkernel-x86-2.x.xx-tuxonice[-rx]" > exit 2 >fi ># >cd ~ >if [ ! -d ./tmp ]; then > echo "${0}: Directory ~/tmp does not exist -- exiting..." > exit -1 >fi ># >cd ./tmp >if [ -d ./tmp ]; then > echo "${0}: Directory ~/tmp/tmp exists -- exiting..." > exit -2 >fi ># >gzip -dc /boot/$1 > ./${1}.cpio ># >mkdir ./tmp >cd ./tmp >cpio -idm --quiet -H newc < ../${1}.cpio ># >cp -ip /sbin/tuxoniceui_* ./sbin/ >ln -s default ./etc/splash/tuxonice ># >find . | cpio --quiet --dereference -o -H newc > ../${1}.cpio.new >cd .. >gzip -9 ./${1}.cpio.new ># >mv -i /boot/${1} /boot/${1}.orig >mv -i ./${1}.cpio.new.gz /boot/${1} >rm -i ./${1}.cpio >rm -fr ./tmp ># >exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 291925
: 209283