From 94a7769e246266cfa8c72ba74df03cc027a71ce0 Mon Sep 17 00:00:00 2001 From: fewtarius Date: Sat, 30 Jul 2022 08:22:53 -0400 Subject: [PATCH] Use system.hostname. --- packages/jelos/sources/autostart/common/008-hostname | 8 ++++++++ packages/sysutils/busybox/profile.d/98-busybox.conf | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 packages/jelos/sources/autostart/common/008-hostname diff --git a/packages/jelos/sources/autostart/common/008-hostname b/packages/jelos/sources/autostart/common/008-hostname new file mode 100755 index 000000000..084cc273f --- /dev/null +++ b/packages/jelos/sources/autostart/common/008-hostname @@ -0,0 +1,8 @@ +#!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius) + +. /etc/profile + +HOSTNAME=$(get_setting system.hostname) +hostname ${HOSTNAME} diff --git a/packages/sysutils/busybox/profile.d/98-busybox.conf b/packages/sysutils/busybox/profile.d/98-busybox.conf index d743a2768..f4c0f2d00 100644 --- a/packages/sysutils/busybox/profile.d/98-busybox.conf +++ b/packages/sysutils/busybox/profile.d/98-busybox.conf @@ -8,7 +8,7 @@ export HOME="/storage" export PATH="/usr/bin:/usr/sbin" export LD_LIBRARY_PATH="/usr/lib" export HOSTNAME=`cat /etc/hostname` -export PS1='\e[1;30m'"${HW_DEVICE}"':\e[1;30m\w \e[0m\$ \e[0m' +export PS1='\e[1;30m\h:\e[1;30m\w \e[0m\$ \e[0m' case "$TERM" in linux|nxterm|screen|xterm|xterm-color)