commit
15a1d1a202
2 changed files with 9 additions and 1 deletions
8
packages/jelos/sources/autostart/common/008-hostname
Executable file
8
packages/jelos/sources/autostart/common/008-hostname
Executable file
|
@ -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}
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue