summaryrefslogtreecommitdiffstats
path: root/remote/tools/base
diff options
context:
space:
mode:
Diffstat (limited to 'remote/tools/base')
-rw-r--r--remote/tools/base/base.build98
-rw-r--r--remote/tools/base/base.conf56
-rw-r--r--remote/tools/base/base.conf.zypper56
-rw-r--r--remote/tools/base/data/etc/keymaps/de_DEbin2823 -> 0 bytes
-rw-r--r--remote/tools/base/data/etc/profile57
-rw-r--r--remote/tools/base/data/etc/systemd/system/basic.target.wants/rsyslog.service12
-rwxr-xr-xremote/tools/base/data/etc/udhcpc.default.script61
-rwxr-xr-xremote/tools/base/data/etc/udhcpc.openslx.script78
8 files changed, 0 insertions, 418 deletions
diff --git a/remote/tools/base/base.build b/remote/tools/base/base.build
deleted file mode 100644
index 71886d8a..00000000
--- a/remote/tools/base/base.build
+++ /dev/null
@@ -1,98 +0,0 @@
-fetch_source() {
- :
-}
-
-build() {
-
- BUILDDIR="${TOOL_DIR}/${TOOL}/build"
- mkdir -p "${BUILDDIR}"
-
- FILELIST="list_binaries_and_files"
- [ -e "${FILELIST}" ] && rm "${FILELIST}"
-
- for BIN in ${REQUIRED_BINARIES}
- do
- BIN_LOCATION=$(which ${BIN})
- if [ ! -z ${BIN_LOCATION} -a -e ${BIN_LOCATION} ];
- then
- pdebug "Processing $BIN at $BIN_LOCATION ..."
- get_link_chain ${BIN_LOCATION} >> "${FILELIST}"
- else
- perror "${BIN} not found on the system! Please install it."
- fi
- done
-
- for LIB in ${REQUIRED_LIBRARIES}
- do
- for LIB_LOCATION in $(find /lib/ -name "${LIB}.so*")
- do
- get_link_chain "${LIB_LOCATION}" >> "${FILELIST}"
- done
- done
-
- for FILE in ${REQUIRED_DIRECTORIES}
- do
- [ ! -d ${FILE} ] && perror "Missing required directory $FILE"
- echo ${FILE} >> "${FILELIST}"
- done
- for FILE in ${REQUIRED_FILES}
- do
- [ ! -f ${FILE} ] && perror "Missing required file $FILE"
- echo ${FILE} >> "${FILELIST}"
- done
-
- local NUMFILES=$(cat "${FILELIST}" | wc -l)
- if [ "x$NUMFILES" != "x" -a "x$NUMFILES" != "x0" ]; then
- pinfo "File list generated at ${BUILDDIR}/${FILELIST} ($NUMFILES entries)"
- tarcopy "$(cat "${FILELIST}")" "${BUILDDIR}"
- fi
-}
-
-post_copy() {
-
- # make basic directory structure
- mkdir -p "${INIT_DIR}"/{bin,dev,proc,lib,etc,mnt,sys,var/run,var/lock,var/log,run/lock,run/shm,openslx/mnt}
-
- # copy devices from running system
- cp -a /dev/{console,kmsg,mem,null,shm,tty,tty0,tty1,tty9,fb0,urandom,zero} \
- "${INIT_DIR}"/dev || perror "Copying devices from running system failed."
-
- # set /etc/environment to include /openslx/bin and /openslx/sbin
- echo "PATH=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/openslx/sbin:/openslx/bin\"" \
- > "${INIT_DIR}/etc/environment"
-
- # copy static files
- cp -r "${TOOL_DIR}/${TOOL}"/data/* "${INIT_DIR}" || perror "Copying static files from data/* failed."
-
- # better: dirname $(ldd $SHELL|grep libc | awk -F " " '{print $3}')
- # copy pam modules, TODO: better way to find arch-dependant interfix...
- tarcopy "$(dirname $(locate pam_unix.so | grep ^/lib/))" "${INIT_DIR}"
-
- # quick fix for /etc/fstab
- echo "# no configuration" >> "${INIT_DIR}/etc/fstab"
-
- # link /etc/mtab, needed for systemd
- [ ! -e ${INIT_DIR}/etc/mtab ] && ln -s /proc/self/mounts ${INIT_DIR}/etc/mtab
-
- # passwd, group, shadow
- init_users_and_groups
-
- # quick fix for missing group in /etc/group
- add_group "lock"
-
- # setup root accoun
- USER=root PASSWORD='!r00t' add_user
-
- mkdir -p ${INIT_DIR}/root
-
- echo "minilinux-$(hostname)" > "${INIT_DIR}/etc/hostname"
-
- # copy kernel modules
- #[ ! -d ${INIT_DIR}/lib/modules/$(uname -r) ] && mkdir -p ${INIT_DIR}/lib/modules/$(uname -r)
- #cp -r /lib/modules/$(uname -r) ${INIT_DIR}/lib/modules/$(uname -r)
-
- #quick fix xterm symlink
- [ -e /usr/lib/libXaw7.so.7.0.0 ] && \
- ln -s "/usr/lib/libXaw7.so.7.0.0" "${INIT_DIR}/usr/lib/libXaw7.so.7"
-}
-
diff --git a/remote/tools/base/base.conf b/remote/tools/base/base.conf
deleted file mode 100644
index 22e91214..00000000
--- a/remote/tools/base/base.conf
+++ /dev/null
@@ -1,56 +0,0 @@
-REQUIRED_DEPENDENCIES="nfs-common aufs-tools squashfs-tools"
-REQUIRED_BINARIES=" bash
- agetty
- cat
- false
- loadkeys
- setfont
- login
- sulogin
- mount
- umount
- mount.nfs4
- umount.nfs4
- mount.aufs
- rm
- ldd
- strace
- blkid
- modprobe
- rsyslogd
- ps
- scp
- ssh"
-REQUIRED_LIBRARIES=" libcap
- libcidn
- libcom_err
- libcrypt
- libcrypto
- libnsl
- libnss_compat
- libnss_dns
- libnss_files
- libnss_hesiod
- libnss_nis
- libnss_nisplus
- libpam
- libutil
- libtinfo
- libresolv
- libau"
-REQUIRED_DIRECTORIES=" /etc/pam.d
- /etc/security"
-REQUIRED_FILES=" /etc/environment
- /etc/pam.conf
- /etc/issue
- /etc/inputrc
- /etc/localtime
- /etc/login.defs
- /etc/nsswitch.conf
- /etc/securetty
- /etc/default/locale
- /etc/default/aufs
- /etc/protocols
- /etc/services
- /etc/networks
- /etc/netconfig"
diff --git a/remote/tools/base/base.conf.zypper b/remote/tools/base/base.conf.zypper
deleted file mode 100644
index 084bff5c..00000000
--- a/remote/tools/base/base.conf.zypper
+++ /dev/null
@@ -1,56 +0,0 @@
-REQUIRED_DEPENDENCIES="nfs-client aufs squashfs"
-REQUIRED_BINARIES=" bash
- agetty
- cat
- false
- loadkeys
- setfont
- login
- sulogin
- mount
- umount
- mount.nfs4
- umount.nfs4
- mount.aufs
- rm
- ldd
- strace
- blkid
- modprobe
- rsyslogd
- ps
- scp
- ssh"
-REQUIRED_LIBRARIES=" libcap
- libcidn
- libcom_err
- libcrypt
- libcrypto
- libnsl
- libnss_compat
- libnss_dns
- libnss_files
- libnss_hesiod
- libnss_nis
- libnss_nisplus
- libpam
- libutil
- libtinfo
- libresolv
- libau"
-REQUIRED_DIRECTORIES=" /etc/pam.d
- /etc/security"
-REQUIRED_FILES=" /etc/environment
- /etc/pam.conf
- /etc/issue
- /etc/inputrc
- /etc/localtime
- /etc/login.defs
- /etc/nsswitch.conf
- /etc/securetty
- /etc/default/locale
- /etc/default/aufs
- /etc/protocols
- /etc/services
- /etc/networks
- /etc/netconfig"
diff --git a/remote/tools/base/data/etc/keymaps/de_DE b/remote/tools/base/data/etc/keymaps/de_DE
deleted file mode 100644
index 375c2012..00000000
--- a/remote/tools/base/data/etc/keymaps/de_DE
+++ /dev/null
Binary files differ
diff --git a/remote/tools/base/data/etc/profile b/remote/tools/base/data/etc/profile
deleted file mode 100644
index 3784e784..00000000
--- a/remote/tools/base/data/etc/profile
+++ /dev/null
@@ -1,57 +0,0 @@
-# ~/.bashrc: executed by bash(1) for non-login interactive shells.
-
-export PATH=\
-/bin:\
-/sbin:\
-/usr/bin:\
-/usr/sbin:\
-/openslx/bin:\
-/openslx/sbin:\
-/openslx/usr/bin:\
-/openslx/usr/sbin
-
-# If running interactively, then:
-if [ "$PS1" ]; then
-
- if [ "$BASH" ]; then
- export PS1="[\u@\h \W]\\$ "
- alias ll='ls --color=auto -laFh'
- alias ls='ls --color=auto -F'
- export LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:';
- else
- if [ "`id -u`" -eq 0 ]; then
- export PS1='# '
- else
- export PS1='$ '
- fi
- fi
-
- export USER=`id -un`
- export LOGNAME=$USER
- export HOSTNAME=`hostname`
- export HISTSIZE=1000
- export HISTFILESIZE=1000
- export PAGER='/bin/more '
- export EDITOR='/bin/vi'
- export INPUTRC=/etc/inputrc
- export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
-
- ### Some aliases
- alias ps2='ps facux '
- alias ps1='ps faxo "%U %t %p %a" '
- alias af='ps af'
- alias cls='clear'
- alias df='df -h'
- alias indent='indent -bad -bap -bbo -nbc -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -cp33 -cs -d0 -di1 -nfc1 -nfca -hnl -i4 -ip0 -l75 -lp -npcs -npsl -nsc -nsob -nss -ts4 '
- #alias bc='bc -l'
- alias minicom='minicom -c on'
- alias calc='calc -Cd '
- alias bc='calc -Cd '
-fi;
-
-# Source configuration files from /etc/profile.d
-for i in /etc/profile.d/*.sh ; do
- if [ -r "$i" ]; then
- . $i
- fi
-done
diff --git a/remote/tools/base/data/etc/systemd/system/basic.target.wants/rsyslog.service b/remote/tools/base/data/etc/systemd/system/basic.target.wants/rsyslog.service
deleted file mode 100644
index 8e253ee1..00000000
--- a/remote/tools/base/data/etc/systemd/system/basic.target.wants/rsyslog.service
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-Description=System Logging Service
-Before=udev.service
-
-[Service]
-ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service
-ExecStart=/usr/sbin/rsyslogd -n -c5
-Sockets=syslog.socket
-StandardOutput=null
-
-[Install]
-WantedBy=multi-user.target
diff --git a/remote/tools/base/data/etc/udhcpc.default.script b/remote/tools/base/data/etc/udhcpc.default.script
deleted file mode 100755
index 4a3403bc..00000000
--- a/remote/tools/base/data/etc/udhcpc.default.script
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/bash
-# Busybox udhcpc dispatcher script. Copyright (C) 2009 by Axel Beckert.
-#
-# Based on the busybox example scripts and the old udhcp source
-# package default.* scripts.
-
-RESOLV_CONF="/etc/resolv.conf"
-IP_CONF="/tmp/udhcpc_ip_config"
-
-export PATH=$PATH:/openslx/sbin:/openslx/bin
-
-case $1 in
- bound|renew)
-
- [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
- [ -n "$subnet" ] && NETMASK="netmask $subnet"
-
- ip addr add $ip/$(ipcalc -s -p $ip $subnet|sed s/.*=//) dev $interface
- ip route add default via $router
-
- echo "ip=$ip" > $IP_CONF
- echo "subnet=$subnet" >> $IP_CONF
- echo "broadcast=$broadcast" >> $IP_CONF
- echo "gateway=$router" >> $IP_CONF
-
- # Update resolver configuration file
- R=""
- [ -n "$domain" ] && R="domain $domain
-"
- count=1;
- for i in $dns; do
- echo "$0: Adding DNS $i"
- R="${R}nameserver $i
-"
- count=$((count+1));
- done
-
- if [ -x /sbin/resolvconf ]; then
- echo -n "$R" | resolvconf -a "${interface}.udhcpc"
- else
- echo -n "$R" > "$RESOLV_CONF"
- fi
- ;;
-
- deconfig)
-
- ;;
-
- leasefail)
- echo "$0: Lease failed: $message"
- ;;
-
- nak)
- echo "$0: Received a NAK: $message"
- ;;
-
- *)
- echo "$0: Unknown udhcpc command: $1";
- exit 1;
- ;;
-esac
diff --git a/remote/tools/base/data/etc/udhcpc.openslx.script b/remote/tools/base/data/etc/udhcpc.openslx.script
deleted file mode 100755
index bff430ef..00000000
--- a/remote/tools/base/data/etc/udhcpc.openslx.script
+++ /dev/null
@@ -1,78 +0,0 @@
-#!/bin/bash
-# -----------------------------------------------------------------------------
-#
-# Copyright (c) 2011 - OpenSLX GmbH
-#
-# This program is free software distributed under the GPL version 2.
-# See http://openslx.org/COPYING
-#
-# If you have any feedback please consult http://openslx.org/feedback and
-# send your suggestions, praise, or complaints to feedback@openslx.org
-#
-# General information about OpenSLX can be found at http://openslx.org/
-# -----------------------------------------------------------------------------
-#
-# Mini-Linux Toolkit
-#
-# -----------------------------------------------------------------------------
-
-
-RESOLV_CONF="/etc/resolv.conf"
-IP_CONF="/tmp/udhcpc_ip_config"
-
-export PATH=$PATH:/openslx/sbin:/openslx/bin
-
-case $1 in
- bound|renew)
-
- [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
- [ -n "$subnet" ] && NETMASK="netmask $subnet"
-
- ip addr add $ip/$(ipcalc -s -p $ip $subnet|sed s/.*=//) dev $interface
- ip route add default via $router
-
- echo "ip=$ip" > $IP_CONF
- echo "subnet=$subnet" >> $IP_CONF
- echo "broadcast=$broadcast" >> $IP_CONF
- echo "gateway=$router" >> $IP_CONF
-
- # Update resolver configuration file
- R=""
- [ -n "$domain" ] && R="domain $domain
-"
- count=1;
- for i in $dns; do
- echo "$0: Adding DNS $i"
- R="${R}nameserver $i
-"
- count=$((count+1));
- done
-
- if [ -x /sbin/resolvconf ]; then
- echo -n "$R" | resolvconf -a "${interface}.udhcpc"
- else
- echo -n "$R" > "$RESOLV_CONF"
- fi
-
- # TODO i.e. event trigger
- systemctl start nfs-mount.service
-
- ;;
-
- deconfig)
-
- ;;
-
- leasefail)
- echo "$0: Lease failed: $message"
- ;;
-
- nak)
- echo "$0: Received a NAK: $message"
- ;;
-
- *)
- echo "$0: Unknown udhcpc command: $1";
- exit 1;
- ;;
-esac