diff options
Diffstat (limited to 'etc')
| -rwxr-xr-x | etc/X11/xinit/xinitrc.openbox-session | 26 | ||||
| -rw-r--r-- | etc/X11/xorg.conf.d/10-dummy.conf | 28 | ||||
| -rwxr-xr-x | etc/rc.d/rc.local | 26 | ||||
| -rwxr-xr-x | etc/rc.d/rc.splash | 15 |
4 files changed, 95 insertions, 0 deletions
diff --git a/etc/X11/xinit/xinitrc.openbox-session b/etc/X11/xinit/xinitrc.openbox-session new file mode 100755 index 0000000..42431b7 --- /dev/null +++ b/etc/X11/xinit/xinitrc.openbox-session @@ -0,0 +1,26 @@ +#!/bin/sh +# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/etc/X11/xinit/.Xresources +sysmodmap=/etc/X11/xinit/.Xmodmap + +# merge in defaults and keymaps +[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources +[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap +[ -f $userresources ] && /usr/bin/xrdb -merge $userresources +[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap + +# Create default user directory & populate it if not already existent +if [ ! -d $HOME/.config/openbox ]; then + mkdir -p $HOME/.config/openbox + cat /etc/xdg/openbox/menu.xml > $HOME/.config/openbox/menu.xml + cat /etc/xdg/openbox/rc.xml > $HOME/.config/openbox/rc.xml +fi + +if [ -z "$DESKTOP_SESSION" ]; then + dbus-launch --exit-with-session openbox-session +else + openbox-session +fi diff --git a/etc/X11/xorg.conf.d/10-dummy.conf b/etc/X11/xorg.conf.d/10-dummy.conf new file mode 100644 index 0000000..5b22188 --- /dev/null +++ b/etc/X11/xorg.conf.d/10-dummy.conf @@ -0,0 +1,28 @@ +Section "Device" + Identifier "DummyDevice" + Driver "dummy" + VideoRam 256000 +EndSection + +Section "Monitor" + Identifier "DummyMonitor" + HorizSync 28-80 + VertRefresh 48-75 +EndSection + +Section "Screen" + Identifier "DummyScreen" + Device "DummyDevice" + Monitor "DummyMonitor" + DefaultDepth 24 + SubSection "Display" + Depth 24 + Modes "1280x720" + EndSubSection +EndSection + +Section "InputClass" + Identifier "ignore pointer" + MatchIsPointer "on" + Option "Ignore" "true" +EndSection diff --git a/etc/rc.d/rc.local b/etc/rc.d/rc.local new file mode 100755 index 0000000..3d70d18 --- /dev/null +++ b/etc/rc.d/rc.local @@ -0,0 +1,26 @@ +#!/bin/bash +# +# /etc/rc.d/rc.local: Local system initialization script. +# +# Put any local startup commands in here. Also, if you have +# anything that needs to be run at shutdown time you can +# make an /etc/rc.d/rc.local_shutdown script and put those +# commands in there. + +if [[ -x /etc/rc.d/rc.libvirt ]]; then + /etc/rc.d/rc.libvirt start +fi + +if [[ -x /lib/ufw/ufw-init ]]; then + echo "starting ufw..." + /lib/ufw/ufw-init start +fi + +echo "loading uhid..." +modprobe uhid +echo "loading ntsync module..." +modprobe ntsync + +if [[ -x /etc/rc.d/rc.splash ]]; then + /etc/rc.d/rc.splash +fi diff --git a/etc/rc.d/rc.splash b/etc/rc.d/rc.splash new file mode 100755 index 0000000..50b2a32 --- /dev/null +++ b/etc/rc.d/rc.splash @@ -0,0 +1,15 @@ +#!/bin/bash + +cat << EOL +░░░░█▐▄▒▒▒▌▌▒▒▌░▌▒▐▐▐▒▒▐▒▒▌▒▀▄▀▄░ +░░░█▐▒▒▀▀▌░▀▀▀░░▀▀▀░░▀▀▄▌▌▐▒▒▒▌▐░ +░░▐▒▒▀▀▄▐░▀▀▄▄░░░░░░░░░░░▐▒▌▒▒▐░▌ +░░▐▒▌▒▒▒▌░▄▄▄▄█▄░░░░░░░▄▄▄▐▐▄▄▀░░ +░░▌▐▒▒▒▐░░░░░░░░░░░░░▀█▄░░░░▌▌░░░ +▄▀▒▒▌▒▒▐░░░░░░░▄░░▄░░░░░▀▀░░▌▌░░░ +▄▄▀▒▐▒▒▐░░░░░░░▐▀▀▀▄▄▀░░░░░░▌▌░░░ +░░░░█▌▒▒▌░░░░░▐▒▒▒▒▒▌░░░░░░▐▐▒▀▀▄ +░░▄▀▒▒▒▒▐░░░░░▐▒▒▒▒▐░░░░░▄█▄▒▐▒▒▒ +▄▀▒▒▒▒▒▄██▀▄▄░░▀▄▄▀░░▄▄▀█▄░█▀▒▒▒▒ +EOL + |
