From e642c89888f23088f2388dcd44a75e088564215f Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Mon, 9 Sep 2024 20:36:26 +0200 Subject: Initial commit --- custom/overlay/etc/init.d/S49-dropbear-prep | 34 +++++++++++++++++++++++++++++ custom/overlay/home | 1 + custom/overlay/root/.zshrc | 7 ++++++ 3 files changed, 42 insertions(+) create mode 100755 custom/overlay/etc/init.d/S49-dropbear-prep create mode 120000 custom/overlay/home create mode 100644 custom/overlay/root/.zshrc (limited to 'custom') diff --git a/custom/overlay/etc/init.d/S49-dropbear-prep b/custom/overlay/etc/init.d/S49-dropbear-prep new file mode 100755 index 0000000..33bad8f --- /dev/null +++ b/custom/overlay/etc/init.d/S49-dropbear-prep @@ -0,0 +1,34 @@ +#!/bin/sh +# +# Prepares dropbear (external keys). +# Assumes there's a third partition (test for it). +# Assume partition is formatted (however you want). +# +# TODO: +# Actually create the dropbear symlink if keys already +# exist in /data/dropbear/ +# + + +start() { + if ! [[ -e /data/ ]] ; then + mkdir /data/ + fi + + if test -e /dev/mmcblk0p3 && ! grep -sq mmcblk0p3 /proc/mounts ; then + mount /dev/mmcblk0p3 /data/ + fi +} + +case "$1" in + start) + start + ;; + stop|restart|reload) + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 +esac + +exit 0 diff --git a/custom/overlay/home b/custom/overlay/home new file mode 120000 index 0000000..12d0e71 --- /dev/null +++ b/custom/overlay/home @@ -0,0 +1 @@ +/data/home/ \ No newline at end of file diff --git a/custom/overlay/root/.zshrc b/custom/overlay/root/.zshrc new file mode 100644 index 0000000..f72d530 --- /dev/null +++ b/custom/overlay/root/.zshrc @@ -0,0 +1,7 @@ +bindkey -e +bindkey "^[[H" beginning-of-line +bindkey "^[[F" end-of-line +bindkey "^[[3~" delete-char + +PS1='%F{blue}%~ %(?.%F{green}.%F{red})%#%f ' + -- cgit v1.2.3