cleanup testconfigs

This commit is contained in:
udeved 2014-12-11 14:47:58 +01:00
parent c6105c19e7
commit ac69a5c572
29 changed files with 0 additions and 516 deletions

View file

@ -1,18 +0,0 @@
#!/usr/bin/openrc-run
# Copyright 2014 Aaditya Bagga (aaditya_gnulinux@zoho.com)
# Distributed under the terms of the GNU General Public License v2
description="Manjaro livecd script"
command="/opt/livecd/livecd"
depend() {
need localmount
}
# start() {
# ebegin "Running livecd script"
# # run the livecd script
# /opt/livecd/livecd
# eend $?
# }

View file

@ -1,18 +0,0 @@
#!/usr/bin/openrc-run
# Copyright 2014 Aaditya Bagga (aaditya_gnulinux@zoho.com)
# Distributed under the terms of the GNU General Public License v2
description="Manjaro livecd mhwd script"
command="/opt/livecd/mhwd"
depend() {
need livecd
before xdm
}
# start() {
# ebegin "Running mhwd script"
# # run the mhwd script
# /opt/livecd/mhwd
# eend $?
# }

View file

@ -1,17 +0,0 @@
#!/usr/bin/openrc-run
# Copyright 2014 Aaditya Bagga (aaditya_gnulinux@zoho.com)
# Distributed under the terms of the GNU General Public License v2
description="Pacman initialization script"
depend() {
use net
need haveged
}
start() {
ebegin "Running pacman initialization"
/usr/bin/pacman-key --init &> /dev/null
/usr/bin/pacman-key --populate archlinux manjaro &> /dev/null
eend $?
}

View file

@ -1,15 +0,0 @@
#!/usr/bin/openrc-run
# Distributed under the terms of the GNU General Public License v2
description="Pacman sync script"
depend() {
need pacman-init net
}
start() {
ebegin "Running livecd script"
/usr/bin/pacman-boot &> /dev/null
eend $?
}

View file

@ -1 +0,0 @@
/etc/init.d/livecd

View file

@ -1 +0,0 @@
/etc/init.d/mhwd

View file

@ -1 +0,0 @@
/etc/init.d/pacman-init

View file

@ -1,206 +0,0 @@
#!/bin/sh
#
# This is SORT OF LIKE an X session, but not quite. You get a command as the
# first argument (it could be multiple words, so run it with "eval"). As a
# special case, the command can be:
# default - Run the appropriate Xclients startup (see the code below)
# custom - Run ~/.xsession and if that's not available run 'default'
#
# (Note that other arguments could also follow, but only the command one is
# right now relevant and supported)
#
# The output is ALREADY redirected to .xsession-errors in GDM. This way
# .xsession-errors actually gets more output such as if the PreSession script
# is failing. This also prevents DoS attacks if some app in the users session
# can be prodded to dump lots of stuff on the stdout/stderr. We wish to be
# robust don't we? In case you wish to use an existing script for other DM's,
# you can just not redirect when GDMSESSION is set. GDMSESSION will always
# be set from gdm.
#
# Also note that this is not run as a login shell, this is just executed.
# This is why we source the profile files below.
#
# based on:
# $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $
command="$@"
# this will go into the .xsession-errors along with all other echo's
# good for debugging where things went wrong
echo "$0: Beginning session setup..."
# First read /etc/profile and .profile
test -f /etc/profile && . /etc/profile
test -f "$HOME/.profile" && . "$HOME/.profile"
# Second read /etc/xprofile and .xprofile for X specific setup
test -f /etc/xprofile && . /etc/xprofile
test -f "$HOME/.xprofile" && . "$HOME/.xprofile"
# Translation stuff
if [ -x "/usr/lib/gdm/gdmtranslate" ] ; then
gdmtranslate="/usr/lib/gdm/gdmtranslate"
else
gdmtranslate=
fi
# Note that this should only go to zenity dialogs which always expect utf8
gettextfunc () {
if [ "x$gdmtranslate" != "x" ] ; then
"$gdmtranslate" --utf8 "$1"
else
echo "$1"
fi
}
OLD_IFS=$IFS
gdmwhich () {
COMMAND="$1"
OUTPUT=
IFS=:
for dir in $PATH
do
if test -x "$dir/$COMMAND" ; then
if test "x$OUTPUT" = "x" ; then
OUTPUT="$dir/$COMMAND"
fi
fi
done
IFS=$OLD_IFS
echo "$OUTPUT"
}
zenity=`gdmwhich zenity`
# Note: ~/.xsession-errors is now done in the daemon so that it
# works for ALL sessions (except ones named 'Failsafe')
# clean up after xbanner
freetemp=`gdmwhich freetemp`
if [ -n "$freetemp" ] ; then
"$freetemp"
fi
userresources="$HOME/.Xresources"
usermodmap="$HOME/.Xmodmap"
userxkbmap="$HOME/.Xkbmap"
sysresources=/etc/X11/Xresources
sysmodmap=/etc/X11/Xmodmap
sysxkbmap=/etc/X11/Xkbmap
rh6sysresources=/etc/X11/xinit/Xresources
rh6sysmodmap=/etc/X11/xinit/Xmodmap
# merge in defaults
if [ -f "$rh6sysresources" ]; then
xrdb -nocpp -merge "$rh6sysresources"
fi
if [ -f "$sysresources" ]; then
xrdb -nocpp -merge "$sysresources"
fi
if [ -f "$userresources" ]; then
xrdb -nocpp -merge "$userresources"
fi
# merge in keymaps
if [ -f "$sysxkbmap" ]; then
setxkbmap `cat "$sysxkbmap"`
XKB_IN_USE=yes
fi
if [ -f "$userxkbmap" ]; then
setxkbmap `cat "$userxkbmap"`
XKB_IN_USE=yes
fi
#
# Eeek, this seems like too much magic here
#
if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then
if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
xkbsymbols=`sed -n -e 's/^[ ]*XkbSymbols[ ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config`
if [ -n "$xkbsymbols" ]; then
setxkbmap -symbols "$xkbsymbols"
XKB_IN_USE=yes
fi
fi
fi
# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
if [ -f "$rh6sysmodmap" ]; then
xmodmap "$rh6sysmodmap"
fi
if [ -f "$sysmodmap" ]; then
xmodmap "$sysmodmap"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
fi
unset XKB_IN_USE
xhost +si:localuser:`id -un` || :
# run all system xinitrc shell scripts.
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for i in /etc/X11/xinit/xinitrc.d/* ; do
if [ -x "$i" -a ! -d "$i" ]; then
. "$i"
fi
done
fi
if [ "x$command" = "xcustom" ] ; then
if [ -x "$HOME/.xsession" ]; then
command="$HOME/.xsession"
else
echo "$0: Cannot find ~/.xsession will try the default session"
command="default"
fi
fi
if [ "x$command" = "xdefault" ] ; then
if [ -x "$HOME/.Xclients" ]; then
command="$HOME/.Xclients"
elif [ -x /etc/X11/xinit/Xclients ]; then
command="/etc/X11/xinit/Xclients"
elif [ -x /etc/X11/Xclients ]; then
command="/etc/X11/Xclients"
else
if [ -n "$zenity" ] ; then
disptext=`gettextfunc "System has no Xclients file, so starting a failsafe xterm session. Windows will have focus only if the mouse pointer is above them. To get out of this mode type 'exit' in the window."`
"$zenity" --info --text "$disptext"
else
echo "$0: Cannot find Xclients"
fi
exec xterm -geometry 80x24+0+0
fi
fi
# add ssh-agent if found
sshagent="`gdmwhich ssh-agent`"
if [ -n "$sshagent" ] && [ -x "$sshagent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
command="$sshagent -- $command"
elif [ -z "$sshagent" ] ; then
echo "$0: ssh-agent not found!"
fi
echo "$0: Setup done, will execute: $command"
eval exec $command
echo "$0: Executing $command failed, will run xterm"
if [ -n "$zenity" ] ; then
disptext=`gettextfunc "Failed to start the session, so starting a failsafe xterm session. Windows will have focus only if the mouse pointer is above them. To get out of this mode type 'exit' in the window."`
"$zenity" --info --text "$disptext"
fi
exec xterm -geometry 80x24+0+0

View file

@ -1,16 +0,0 @@
# GDM configuration storage
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=manjaro
[security]
[xdmcp]
[greeter]
[chooser]
[debug]

View file

@ -1,19 +0,0 @@
#!/usr/bin/openrc-run
# Copyright 2014 Aaditya Bagga (aaditya_gnulinux@zoho.com)
# Distributed under the terms of the GNU General Public License v2
description="Check if network is active with networkmanager"
depend() {
after networkmanager
}
start() {
rc-status | grep inactive | grep networkmanager
if [ $? -eq 0 ]; then
rc-status | grep dhcpcd
if [ ! $? -eq 0 ]; then
rc-service dhcpcd start
fi
fi
}

View file

@ -1,15 +0,0 @@
#!/usr/bin/openrc-run
# Copyright 2014 Aaditya Bagga (aaditya_gnulinux@zoho.com)
# Distributed under the terms of the GNU General Public License v2
description="Manjaro livecd script"
depend() {
need localmount
}
start() {
ebegin "Running livecd script"
# run the livecd script
/opt/livecd/livecd
}

View file

@ -1,16 +0,0 @@
#!/usr/bin/openrc-run
# Copyright 2014 Aaditya Bagga (aaditya_gnulinux@zoho.com)
# Distributed under the terms of the GNU General Public License v2
description="Manjaro livecd mhwd script"
depend() {
need livecd
before xdm
}
start() {
ebegin "Running mhwd script"
# run the mhwd script
/opt/livecd/mhwd
}

View file

@ -1,15 +0,0 @@
#!/usr/bin/openrc-run
# Copyright 2014 Aaditya Bagga (aaditya_gnulinux@zoho.com)
# Distributed under the terms of the GNU General Public License v2
description="Pacman initialization script"
depend() {
use net
need haveged
}
start() {
/usr/bin/pacman-key --init
/usr/bin/pacman-key --populate archlinux manjaro
}

View file

@ -1,11 +0,0 @@
#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#
/usr/bin/rc-service checknet start # Check if networkmanager started correctly
/usr/bin/pacman-boot & # Setup pacman databases
# Source /etc/conf.d/xdm if it exists
[ -e /etc/conf.d/xdm ] && . /etc/conf.d/xdm
if [ "$DISPLAYMANAGER" == "lxdm" ]; then
rc-service xdm restart # Restart xdm as lxdm does not get started correctly the first time, does not happen with lightdm
fi

View file

@ -1,102 +0,0 @@
# MDM Custom Configuration file.
#
# This file is the appropriate place for specifying your customizations to the
# MDM configuration. If you run mdmsetup, it will automatically edit this
# file for you and will cause the daemon and any running MDM GUI programs to
# automatically update with the new configuration. Not all configuration
# options are supported by mdmsetup, so to modify some values it may be
# necessary to modify this file directly by hand.
#
# This file overrides the default configuration settings. These settings
# are stored in the MDM System Defaults configuration file, which is found
# at the following location.
#
# /usr/share/mdm/defaults.conf.
#
# This file contains comments about the meaning of each configuration option,
# so is also a useful reference. Also refer to the documentation links at
# the end of this comment for further information. In short, to hand-edit
# this file, simply add or modify the key=value combination in the
# appropriate section in the template below this comment section.
#
# For example, if you want to specify a different value for the Enable key
# in the "[debug]" section of your MDM System Defaults configuration file,
# then add "Enable=true" in the "[debug]" section of this file. If the
# key already exists in this file, then simply modify it.
#
# Older versions of MDM used the "mdm.conf" file for configuration. If your
# system has an old mdm.conf file on the system, it will be used instead of
# this file - so changes made to this file will not take effect. Consider
# migrating your configuration to this file and removing the mdm.conf file.
#
# If you hand edit a MDM configuration file, you can run the following
# command and the MDM daemon will immediately reflect the change. Any
# running MDM GUI programs will also be notified to update with the new
# configuration.
#
# mdmflexiserver --command="UPDATE_CONFIG <configuration key>"
#
# e.g, the "Enable" key in the "[debug]" section would be "debug/Enable".
#
# You can also run mdm-restart or mdm-safe-restart to cause MDM to restart and
# re-read the new configuration settings. You can also restart MDM by sending
# a HUP or USR1 signal to the daemon. HUP behaves like mdm-restart and causes
# any user session started by MDM to exit immediately while USR1 behaves like
# mdm-safe-restart and will wait until all users log out before restarting MDM.
#
# For full reference documentation see the gnome help browser under
# GNOME|System category. You can also find the docs in HTML form on
# http://www.gnome.org/projects/mdm/
#
# NOTE: Lines that begin with "#" are considered comments.
#
# Have fun!
[daemon]
DefaultSession=default.desktop
Greeter=/usr/lib/mdm/mdmwebkit
AutomaticLoginEnable=true
AutomaticLogin=manjaro
TimedLoginEnable=true
TimedLogin=manjaro
TimedLoginDelay=10
[security]
[xdmcp]
[gui]
[greeter]
HTMLTheme=Clouds
MinimalUID=1000
IncludeAll=true
[chooser]
[debug]
# Note that to disable servers defined in the MDM System Defaults
# configuration file (such as 0=Standard, you must put a line in this file
# that says 0=inactive, as described in the Configuration section of the MDM
# documentation.
#
[servers]
# Also note, that if you redefine a [server-foo] section, then MDM will
# use the definition in this file, not the MDM System Defaults configuration
# file. It is currently not possible to disable a [server-foo] section
# defined in the MDM System Defaults configuration file.
#

View file

@ -1 +0,0 @@
/etc/init.d/livecd

View file

@ -1 +0,0 @@
/etc/init.d/mhwd

View file

@ -1 +0,0 @@
/etc/init.d/pacman-init

View file

@ -1,5 +0,0 @@
#!/bin/bash
#
# /etc/rc.local.shutdown: Local shutdown script.
#

View file

@ -1,5 +0,0 @@
#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#

View file

@ -1 +0,0 @@
/etc/init.d/alsasound

View file

@ -1 +0,0 @@
/etc/init.d/cronie

View file

@ -1 +0,0 @@
/etc/init.d/metalog

View file

@ -1,2 +0,0 @@
# Set to the hostname of this machine
hostname="manjaro"

View file

@ -1,23 +0,0 @@
# Use keymap to specify the default console keymap. There is a complete tree
# of keymaps in /usr/share/kbd/keymaps to choose from.
keymap="us"
# Should we first load the 'windowkeys' console keymap? Most x86 users will
# say "yes" here. Note that non-x86 users should leave it as "no".
# Loading this keymap will enable VT switching (like ALT+Left/Right)
# using the special windows keys on the linux console.
windowkeys="NO"
# The maps to load for extended keyboards. Most users will leave this as is.
extended_keymaps=""
#extended_keymaps="backspace keypad euro2"
# Tell dumpkeys(1) to interpret character action codes to be
# from the specified character set.
# This only matters if you set unicode="yes" in /etc/rc.conf.
# For a list of valid sets, run `dumpkeys --help`
dumpkeys_charset=""
# Some fonts map AltGr-E to the currency symbol instead of the Euro.
# To fix this, set to "yes"
fix_euro="NO"

View file

@ -1 +0,0 @@
/etc/init.d/net.lo

View file

@ -1 +0,0 @@
/etc/init.d/alsasound

View file

@ -1 +0,0 @@
/etc/init.d/cronie

View file

@ -1 +0,0 @@
/etc/init.d/metalog