diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-06-06 11:39:45 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-06-06 11:57:35 +0000 |
commit | 049d3ce1efda40a59bd42834d3b8db5cdb0386fa (patch) | |
tree | c8f7f4fc52deeed6d282bf058c1b836c7bc13bb5 /setup-xorg-base.in | |
parent | 4d1ea1311436222d95a1a109a605b0bf74ade2d5 (diff) | |
download | alpine-conf-049d3ce1efda40a59bd42834d3b8db5cdb0386fa.tar.bz2 alpine-conf-049d3ce1efda40a59bd42834d3b8db5cdb0386fa.tar.xz |
setup-xorg-base: initial commit
This script is supposed to help users to quickly get a working xorg server
running.
Diffstat (limited to 'setup-xorg-base.in')
-rw-r--r-- | setup-xorg-base.in | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/setup-xorg-base.in b/setup-xorg-base.in new file mode 100644 index 0000000..bcdbe77 --- /dev/null +++ b/setup-xorg-base.in @@ -0,0 +1,29 @@ +#!/bin/sh + +# simple script to setup x basic org server +# you will still need a window manager and login manager or xinit + +base_pkgs="xorg-server xf86-video-vesa xf86-input-evdev xf86-input-mouse + xf86-input-keyboard udev" + +# TODO: detect graphics card and pick proper xf86-video-* driver based on that + +# TODO: detect if we need xf86-input-synaptics + +# ps mouse +modprobe psmouse +grep -q -w psmouse /etc/modules || echo "psmouse" >> /etc/modules + +# install packages +apk add $base_pkgs $@ + +# setup and start udev +rc-update -q del mdev sysinit +rc-update -q add udev sysinit +rc-update -q add udev-postmount default + +if ! rc-service -q udev status; then + rc-service udev start + rc-service udev-postmount start +fi + |