You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
611 B

#!/bin/bash
install() {
# install userui
[ -e /sbin/tuxoniceui ] && inst tuxoniceui || true
# install splash graphics if exists
my_inst_dir() {
inst_dir $1
for i in $1/*; do
if [ -d "$i" ]; then
my_inst_dir "$i"
else
inst "$i"
fi
done
}
[ -e /etc/splash/tuxonice ] && my_inst_dir /etc/splash/tuxonice
[ -e /etc/splash/suspend2 ] && my_inst_dir /etc/splash/suspend2
inst_hook pre-udev 30 "$moddir/tuxonice-prepare.sh"
inst_hook pre-mount 30 "$moddir/tuxonice-lvmfix.sh"
inst "$moddir"/tuxonice-resumecheck.sh /sbin/tuxonice-resumecheck.sh
}