From 06d8aea0935fea74cdad04fab5706ccba26b5126 Mon Sep 17 00:00:00 2001 From: hayao Date: Fri, 18 Sep 2020 19:34:38 +0900 Subject: [PATCH] [add] : customize_airootfs.sh --- .../airootfs/root/customize_airootfs_serene.sh | 27 ++++++++++++++++++++++ channels/share/airootfs/root/custmize_airootfs.sh | 24 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 channels/serene/airootfs/root/customize_airootfs_serene.sh create mode 100644 channels/share/airootfs/root/custmize_airootfs.sh diff --git a/channels/serene/airootfs/root/customize_airootfs_serene.sh b/channels/serene/airootfs/root/customize_airootfs_serene.sh new file mode 100644 index 0000000..fdf967a --- /dev/null +++ b/channels/serene/airootfs/root/customize_airootfs_serene.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash +# +# Yamada Hayao +# Twitter: @Hayao0819 +# Email : hayao@fascode.net +# +# (c) 2019-2020 Fascode Network. +# + +set -e -u + + +# Default value +# Default value +# All values can be changed by arguments. +username="liveuser" + + +# Parse arguments +while getopts 'u:' arg; do + case "${arg}" in + u) username="${OPTARG}" ;; + esac +done + +# Lightdm auto login +sed -i "s/%USERNAME%/${username}" "/etc/lightdm.conf" \ No newline at end of file diff --git a/channels/share/airootfs/root/custmize_airootfs.sh b/channels/share/airootfs/root/custmize_airootfs.sh new file mode 100644 index 0000000..406337f --- /dev/null +++ b/channels/share/airootfs/root/custmize_airootfs.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +# +# Yamada Hayao +# Twitter: @Hayao0819 +# Email : hayao@fascode.net +# +# (c) 2019-2020 Fascode Network. +# + +set -e -u + + +# Default value +# Default value +# All values can be changed by arguments. +username="liveuser" + + +# Parse arguments +while getopts 'u:' arg; do + case "${arg}" in + u) username="${OPTARG}" ;; + esac +done \ No newline at end of file -- 2.11.0