Files
sablink-distro/sys-apps/915resolution/files/initd
T
cvill64 ab879871a6 migrated 915resolution to fix filematch
git-svn-id: http://svn.sabayonlinux.org/overlay@435 d7aec97c-591d-0410-af39-a8856400b30a
2006-12-12 08:58:58 +00:00

33 lines
699 B
Plaintext

#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/915resolution/files/initd,v 1.1 2006/07/22 17:29:44 chutzpah Exp $
depend() {
before xdm
}
checkconfig() {
if [[ -z "${replace[*]}" ]]; then
eerror "You need to have at least one resolution to replace"
eerror "/etc/conf.d/915resolution"
return 1
fi
[[ "${log}" && -f "${log}" ]] && echo > "${log}"
return 0
}
start() {
checkconfig || return 1
ebegin "Patching video BIOS with new video modes."
for mode in "${replace[@]}"; do
915resolution ${mode} >> ${log:-/dev/null} || retval=$?
done
eend ${retval}
}