diff options
Diffstat (limited to 'old/install-files/essential-files')
7 files changed, 101 insertions, 0 deletions
diff --git a/old/install-files/essential-files/etc/inputrc b/old/install-files/essential-files/etc/inputrc new file mode 100644 index 00000000..ddee44cd --- /dev/null +++ b/old/install-files/essential-files/etc/inputrc @@ -0,0 +1,38 @@ +# Allow the command prompt to wrap to the next line +set horizontal-scroll-mode Off + +# Enable 8bit input +set meta-flag On +set input-meta On + +# Turns off 8th bit stripping +set convert-meta Off + +# Keep the 8th bit for display +set output-meta On + +# none, visible or audible +set bell-style none + +# for linux console and RH/Debian xterm +"\e[1~": beginning-of-line +"\e[4~": end-of-line +"\e[5~": beginning-of-history +"\e[6~": end-of-history +"\e[7~": beginning-of-line +"\e[3~": delete-char +"\e[2~": quoted-insert +"\e[5C": forward-word +"\e[5D": backward-word +"\e\e[C": forward-word +"\e\e[D": backward-word +"\e[1;5C": forward-word +"\e[1;5D": backward-word + +# for non RH/Debian xterm, can't hurt for RH/DEbian xterm +"\eOH": beginning-of-line +"\eOF": end-of-line + +# for Konsole and freebsd console +"\e[H": beginning-of-line +"\e[F": end-of-line diff --git a/old/install-files/essential-files/etc/os-release b/old/install-files/essential-files/etc/os-release new file mode 120000 index 00000000..c4c75b41 --- /dev/null +++ b/old/install-files/essential-files/etc/os-release @@ -0,0 +1 @@ +../usr/lib/os-release
\ No newline at end of file diff --git a/old/install-files/essential-files/etc/profile b/old/install-files/essential-files/etc/profile new file mode 100644 index 00000000..5c0a1331 --- /dev/null +++ b/old/install-files/essential-files/etc/profile @@ -0,0 +1,13 @@ +# /etc/profile + +# Set our default path +PATH="/usr/local/bin:/usr/bin" +export PATH + +# Source global bash config +if test "$PS1" && test "$BASH" && test -r /etc/bash.bashrc; then + . /etc/bash.bashrc +fi + +# Set default pager to less +export MANPAGER='less -R' diff --git a/old/install-files/essential-files/manifest b/old/install-files/essential-files/manifest new file mode 100644 index 00000000..93095d86 --- /dev/null +++ b/old/install-files/essential-files/manifest @@ -0,0 +1,11 @@ +0040755 0 0 /etc +overwrite 0120000 0 0 /etc/os-release +overwrite 0100644 0 0 /etc/profile +overwrite 0100644 0 0 /etc/inputrc +0040755 0 0 /usr +0040755 0 0 /usr/bin +0100755 0 0 /usr/bin/brpaste +0040755 0 0 /usr/lib +0100644 0 0 /usr/lib/os-release +0040755 0 0 /usr/lib/tmpfiles.d +0100644 0 0 /usr/lib/tmpfiles.d/shutdownramfs.conf diff --git a/old/install-files/essential-files/usr/bin/brpaste b/old/install-files/essential-files/usr/bin/brpaste new file mode 100644 index 00000000..d2f9d867 --- /dev/null +++ b/old/install-files/essential-files/usr/bin/brpaste @@ -0,0 +1,29 @@ +#!/usr/bin/env python3 + +import urllib.request +import os +import json + +URL = 'http://paste.baserock.org/documents' + +def run(*args): + if args: + content = [open(x).read() for x in args] + extensions = [os.path.splitext(x)[1] for x in args] + else: + content = [sys.stdin.read()] + extensions = [None] + + for i, each in enumerate(content): + req = urllib.request.Request(URL, each.encode('utf-8')) + response = urllib.request.urlopen(req) + the_page = response.read().decode('utf-8') + key = json.loads(the_page)['key'] + url = "http://paste.baserock.org/%s" % key + if extensions[i]: + url += extensions[i] + print(url) + +if __name__ == '__main__': + import sys + sys.exit(run(*sys.argv[1:])) diff --git a/old/install-files/essential-files/usr/lib/os-release b/old/install-files/essential-files/usr/lib/os-release new file mode 100644 index 00000000..b729c75f --- /dev/null +++ b/old/install-files/essential-files/usr/lib/os-release @@ -0,0 +1,5 @@ +NAME="Baserock" +ID=baserock +HOME_URL="http://wiki.baserock.org" +SUPPORT_URL="http://wiki.baserock.org/mailinglist" +BUG_REPORT_URL="http://wiki.baserock.org/mailinglist" diff --git a/old/install-files/essential-files/usr/lib/tmpfiles.d/shutdownramfs.conf b/old/install-files/essential-files/usr/lib/tmpfiles.d/shutdownramfs.conf new file mode 100644 index 00000000..174f1f03 --- /dev/null +++ b/old/install-files/essential-files/usr/lib/tmpfiles.d/shutdownramfs.conf @@ -0,0 +1,4 @@ +# If /usr/lib/shutdownramfs has been populated, copy it into /run/initramfs so +# /run/initramfs/shutdown will be executed on shut-down, so that it may unmount +# the rootfs. +C /run/initramfs - - - - /usr/lib/shutdownramfs |