Skip to content

Commit ed24416

Browse files
CWempeMausy5043
authored andcommitted
Tell kernel the hostname (#460)
*Tell the kernel what the hostname is * move hostname command a few lines up
1 parent f69e3d7 commit ed24416

File tree

1 file changed

+2
-0
lines changed
  • scripts/etc/init.d

1 file changed

+2
-0
lines changed

scripts/etc/init.d/rcS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,8 @@ echo "OK"
10111011
# default hostname
10121012
echo -n " Configuring hostname... "
10131013
echo $hostname > /rootfs/etc/hostname || fail
1014+
# Tell the kernel what the hostname is supposed to be
1015+
hostname $hostname
10141016
echo "OK"
10151017

10161018
echo -n " Configuring hosts... "

0 commit comments

Comments
 (0)