File: initramfs.hook

package info (click to toggle)
tuxonice-userui 1.1%2Bdfsg1.gc3bdd83-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 636 kB
  • ctags: 1,853
  • sloc: ansic: 5,788; makefile: 91; sh: 63; python: 46
file content (20 lines) | stat: -rwxr-xr-x 502 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
[ "$1" = prereqs ] && exit
. /usr/share/initramfs-tools/hook-functions

if [ -f ${MODULESDIR}/kernel/power/tuxonice_userui.ko ]; then
    force_load tuxonice_userui
fi

TUXONICEDIR=/usr/lib/tuxonice-userui

mkdir -p ${DESTDIR}${TUXONICEDIR}

copy_exec ${TUXONICEDIR}/tuxoniceui ${TUXONICEDIR}

[ -f /etc/tuxonice.conf ] && cp /etc/tuxonice.conf $DESTDIR/etc

if splash=`readlink -e /etc/splash/tuxonice`; then
    mkdir $DESTDIR/etc/splash
    cp -r "$splash" $DESTDIR/etc/splash/tuxonice
fi