diff options
author | Juan RP <xtraeme@gmail.com> | 2014-04-25 23:21:51 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-04-25 23:21:51 +0200 |
commit | b45d3f8e1444ac9bc26280e3a7324101bec57b45 (patch) | |
tree | 9e0b89bfac72c4815f8c05f1f6ba5fc39b379ae5 /foo/etc/runit | |
parent | b2fec086b9f498102537e0ff936138b2960e4082 (diff) | |
download | runit-void-b45d3f8e1444ac9bc26280e3a7324101bec57b45.tar.gz runit-void-b45d3f8e1444ac9bc26280e3a7324101bec57b45.tar.xz runit-void-b45d3f8e1444ac9bc26280e3a7324101bec57b45.zip |
Remove foo directory committed accidentally.
Diffstat (limited to 'foo/etc/runit')
-rwxr-xr-x | foo/etc/runit/1 | 99 | ||||
-rwxr-xr-x | foo/etc/runit/2 | 24 | ||||
-rwxr-xr-x | foo/etc/runit/3 | 45 | ||||
-rwxr-xr-x | foo/etc/runit/ctrlaltdel | 11 | ||||
l--------- | foo/etc/runit/runsvdir/current | 1 | ||||
l--------- | foo/etc/runit/runsvdir/default/agetty-tty1 | 1 | ||||
l--------- | foo/etc/runit/runsvdir/default/agetty-tty2 | 1 | ||||
l--------- | foo/etc/runit/runsvdir/default/agetty-tty3 | 1 | ||||
l--------- | foo/etc/runit/runsvdir/default/agetty-tty4 | 1 | ||||
l--------- | foo/etc/runit/runsvdir/default/agetty-tty5 | 1 | ||||
l--------- | foo/etc/runit/runsvdir/default/agetty-tty6 | 1 | ||||
l--------- | foo/etc/runit/runsvdir/default/avahi-daemon | 1 | ||||
l--------- | foo/etc/runit/runsvdir/default/dbus | 1 | ||||
l--------- | foo/etc/runit/runsvdir/default/dcron | 1 | ||||
l--------- | foo/etc/runit/runsvdir/default/dhcpcd | 1 | ||||
l--------- | foo/etc/runit/runsvdir/single/sulogin | 1 |
16 files changed, 0 insertions, 191 deletions
diff --git a/foo/etc/runit/1 b/foo/etc/runit/1 deleted file mode 100755 index c498ac7..0000000 --- a/foo/etc/runit/1 +++ /dev/null @@ -1,99 +0,0 @@ -#!/bin/sh -# vim: set ts=4 sw=4 et: - -PATH=/usr/bin:/usr/sbin - -echo "Welcome to Void!" - -. /etc/rc.conf - -echo "Mounting pseudo-filesystems..." - -mountpoint -q /proc || mount -t proc proc /proc -o nosuid,noexec,nodev -mountpoint -q /sys || mount -t sysfs sys /sys -o nosuid,noexec,nodev -mountpoint -q /run || mount -t tmpfs run /run -o mode=0755,nosuid,nodev -mountpoint -q /dev || mount -t devtmpfs dev /dev -o mode=0755,nosuid - -mkdir -p -m0755 /run/runit /run/lvm /run/user /dev/pts /dev/shm -mountpoint -q /dev/pts || mount -n -t devpts devpts /dev/pts -o mode=0620,gid=5,nosuid,noexec -mountpoint -q /dev/shm || mount -n -t tmpfs shm /dev/shm -o mode=1777,nosuid,nodev - -echo "Remounting rootfs read-only..." -mount -o remount,ro / - -echo "Setting up console fonts..." -for i in /dev/tty[0-6]; do - unicode_start < $i - [ -n "$CONSOLEFONT" ] && setfont ${CONSOLEMAP:+-m $CONSOLEMAP} $CONSOLEFONT -C $i -done - -echo "Loading keymap ${KEYMAP:-us}..." -loadkeys -q -u ${KEYMAP:-us} - -if [ -n "$HARDWARECLOCK" ]; then - echo "Setting up RTC to ${HARDWARECLOCK}..." - TZ=$TIMEZONE hwclock --systz \ - ${HARDWARECLOCK:+--$(echo $HARDWARECLOCK |tr A-Z a-z) --noadjfile} -fi - -if [ -x /usr/lib/systemd/systemd-udevd ]; then - _udevd=/usr/lib/systemd/systemd-udevd -elif [ -x /usr/sbin/udevd ]; then - _udevd=/usr/sbin/udevd -else - echo "WARNING: cannot find udevd!" -fi - -if [ -n "${_udevd}" ]; then - echo "Starting udevd and waiting for devices to settle..." - ${_udevd} --daemon - udevadm trigger --action=add --type=subsystems - udevadm trigger --action=add --type=devices - udevadm settle -fi - -echo "Setting up loopback interface..." -ip link set up dev lo - -echo "Setting up hostname..." -if [ -n "$HOSTNAME" ]; then - echo "$HOSTNAME" > /proc/sys/kernel/hostname -elif [ -r /etc/hostname ]; then - cat /etc/hostname > /proc/sys/kernel/hostname -fi - -echo "Checking filesystems..." -fsck -A -T -a -t noopts=_netdev - -echo "Mounting rootfs read-write..." -mount -o remount,rw / - -echo "Mounting all non-network filesystems..." -mount -a -t "nosysfs,nonfs,nonfs4,nosmbfs,nocifs" -O no_netdev - -echo "Initializing swap..." -swapon -a - -if [ -n "$TIMEZONE" ]; then - echo "Setting up timezone to ${TIMEZONE}..." - ln -sf "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime -fi - -echo "Initializing random seed..." -cp /var/lib/random-seed /dev/urandom >/dev/null 2>&1 || true -( umask 077; dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 >/dev/null 2>&1 ) - -install -m0664 -o root -g utmp /dev/null /run/utmp -rm -f /etc/nologin /forcefsck /forcequotacheck /fastboot - -if [ -n "$MODULES" ]; then - echo "Loading kernel modules..." - modprobe -ab ${MODULES} -fi - -dmesg >/var/log/dmesg.log - -install -m0 /dev/null /etc/runit/reboot -install -m0 /dev/null /etc/runit/stopit - -echo "Initialization complete, starting services..." diff --git a/foo/etc/runit/2 b/foo/etc/runit/2 deleted file mode 100755 index c793759..0000000 --- a/foo/etc/runit/2 +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# vim: set ts=4 sw=4 et: - -PATH=/usr/bin:/usr/sbin - -runlevel=default -for arg in $(cat /proc/cmdline); do - case $arg in - single) echo "Initializing single user mode..."; runlevel=single;; - esac -done - -# Setup first tty as unicode again, stage1 does not work correctly for tty1. -unicode_start - -# Create runlevel and then copy services. -if [ -d /etc/runit/runsvdir/${runlevel} ]; then - mkdir -p /run/runit/runsvdir - cp -aP /etc/runit/runsvdir/${runlevel} /run/runit/runsvdir - ln -s /run/runit/runsvdir/${runlevel} /run/runit/runsvdir/current -fi - -exec env - PATH=$PATH \ - runsvdir -P /run/runit/runsvdir/current 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................' diff --git a/foo/etc/runit/3 b/foo/etc/runit/3 deleted file mode 100755 index 577568d..0000000 --- a/foo/etc/runit/3 +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh -# vim: set ts=4 sw=4 et: - -PATH=/usr/bin:/usr/sbin - -. /etc/rc.conf - -if [ -e /run/runit/reboot ]; then - touch /etc/runit/reboot - chmod 100 /etc/runit/reboot -fi - -echo "Waiting for services to stop..." -sv -w196 force-stop /var/service/* -sv exit /var/service/* - -stty onlcr - -echo "Saving random seed..." -dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 >/dev/null 2>&1 - -if [ -n "$HARDWARECLOCK" ]; then - hwclock --systohc ${HARDWARECLOCK:+--$(echo $HARDWARECLOCK |tr A-Z a-z)} -fi - -halt -w # for utmp - -echo "Stopping udev..." -udevadm control --exit - -echo "Sending TERM signal to processes..." -pkill --inverse -s0,1 -TERM -sleep 5 -echo "Sending KILL signal to processes..." -pkill --inverse -s0,1 -KILL - -echo "Unmounting filesystems, disabling swap..." -umount /tmp -swapoff -a -umount -r -a -t nosysfs,noproc,nodevtmpfs,notmpfs - -echo "Remounting rootfs read-only..." -mount -o remount,ro / -sleep 1 -sync diff --git a/foo/etc/runit/ctrlaltdel b/foo/etc/runit/ctrlaltdel deleted file mode 100755 index af70ed6..0000000 --- a/foo/etc/runit/ctrlaltdel +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -PATH=/usr/bin:/usr/sbin -MSG="System is going down..." - -# We check for this file in stage3 to halt or reboot -touch /run/runit/reboot - -# Proceed with shutdown process -touch /etc/runit/stopit -chmod 100 /etc/runit/stopit && echo "$MSG" | wall diff --git a/foo/etc/runit/runsvdir/current b/foo/etc/runit/runsvdir/current deleted file mode 120000 index 331d858..0000000 --- a/foo/etc/runit/runsvdir/current +++ /dev/null @@ -1 +0,0 @@ -default \ No newline at end of file diff --git a/foo/etc/runit/runsvdir/default/agetty-tty1 b/foo/etc/runit/runsvdir/default/agetty-tty1 deleted file mode 120000 index 0c09cd8..0000000 --- a/foo/etc/runit/runsvdir/default/agetty-tty1 +++ /dev/null @@ -1 +0,0 @@ -/etc/sv/agetty-tty1 \ No newline at end of file diff --git a/foo/etc/runit/runsvdir/default/agetty-tty2 b/foo/etc/runit/runsvdir/default/agetty-tty2 deleted file mode 120000 index 7c0c41b..0000000 --- a/foo/etc/runit/runsvdir/default/agetty-tty2 +++ /dev/null @@ -1 +0,0 @@ -/etc/sv/agetty-tty2 \ No newline at end of file diff --git a/foo/etc/runit/runsvdir/default/agetty-tty3 b/foo/etc/runit/runsvdir/default/agetty-tty3 deleted file mode 120000 index d6514b8..0000000 --- a/foo/etc/runit/runsvdir/default/agetty-tty3 +++ /dev/null @@ -1 +0,0 @@ -/etc/sv/agetty-tty3 \ No newline at end of file diff --git a/foo/etc/runit/runsvdir/default/agetty-tty4 b/foo/etc/runit/runsvdir/default/agetty-tty4 deleted file mode 120000 index b27438b..0000000 --- a/foo/etc/runit/runsvdir/default/agetty-tty4 +++ /dev/null @@ -1 +0,0 @@ -/etc/sv/agetty-tty4 \ No newline at end of file diff --git a/foo/etc/runit/runsvdir/default/agetty-tty5 b/foo/etc/runit/runsvdir/default/agetty-tty5 deleted file mode 120000 index 311b9f7..0000000 --- a/foo/etc/runit/runsvdir/default/agetty-tty5 +++ /dev/null @@ -1 +0,0 @@ -/etc/sv/agetty-tty5 \ No newline at end of file diff --git a/foo/etc/runit/runsvdir/default/agetty-tty6 b/foo/etc/runit/runsvdir/default/agetty-tty6 deleted file mode 120000 index 97ff268..0000000 --- a/foo/etc/runit/runsvdir/default/agetty-tty6 +++ /dev/null @@ -1 +0,0 @@ -/etc/sv/agetty-tty6 \ No newline at end of file diff --git a/foo/etc/runit/runsvdir/default/avahi-daemon b/foo/etc/runit/runsvdir/default/avahi-daemon deleted file mode 120000 index 95977b7..0000000 --- a/foo/etc/runit/runsvdir/default/avahi-daemon +++ /dev/null @@ -1 +0,0 @@ -/etc/sv/avahi-daemon \ No newline at end of file diff --git a/foo/etc/runit/runsvdir/default/dbus b/foo/etc/runit/runsvdir/default/dbus deleted file mode 120000 index 34c103f..0000000 --- a/foo/etc/runit/runsvdir/default/dbus +++ /dev/null @@ -1 +0,0 @@ -/etc/sv/dbus \ No newline at end of file diff --git a/foo/etc/runit/runsvdir/default/dcron b/foo/etc/runit/runsvdir/default/dcron deleted file mode 120000 index 5487a89..0000000 --- a/foo/etc/runit/runsvdir/default/dcron +++ /dev/null @@ -1 +0,0 @@ -/etc/sv/dcron \ No newline at end of file diff --git a/foo/etc/runit/runsvdir/default/dhcpcd b/foo/etc/runit/runsvdir/default/dhcpcd deleted file mode 120000 index 532d6ff..0000000 --- a/foo/etc/runit/runsvdir/default/dhcpcd +++ /dev/null @@ -1 +0,0 @@ -/etc/sv/dhcpcd \ No newline at end of file diff --git a/foo/etc/runit/runsvdir/single/sulogin b/foo/etc/runit/runsvdir/single/sulogin deleted file mode 120000 index 1a52f41..0000000 --- a/foo/etc/runit/runsvdir/single/sulogin +++ /dev/null @@ -1 +0,0 @@ -/etc/sv/sulogin \ No newline at end of file |