mirror of https://github.com/tailix/tailix.git
Configure hostname
This commit is contained in:
parent
581d51e9e5
commit
948a193218
1
Makefile
1
Makefile
|
@ -16,6 +16,7 @@ SYSROOT = $(SRC)/sysroot
|
|||
SYSROOT_TARGETS = \
|
||||
$(SYSROOT)/bin/busybox \
|
||||
$(SYSROOT)/etc/group \
|
||||
$(SYSROOT)/etc/hostname \
|
||||
$(SYSROOT)/etc/hosts \
|
||||
$(SYSROOT)/etc/inittab \
|
||||
$(SYSROOT)/etc/passwd \
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
localhost
|
|
@ -1,3 +1,5 @@
|
|||
::sysinit:/bin/hostname -F /etc/hostname
|
||||
|
||||
tty1::respawn:/sbin/getty 38400 tty1
|
||||
tty2::respawn:/sbin/getty 38400 tty2
|
||||
tty3::respawn:/sbin/getty 38400 tty3
|
||||
|
|
|
@ -2,6 +2,10 @@ $(SYSROOT)/etc/group: etc/group
|
|||
$(INSTALL) -d $(SYSROOT)/etc
|
||||
$(INSTALL) -m 644 etc/group $(SYSROOT)/etc/group
|
||||
|
||||
$(SYSROOT)/etc/hostname: etc/hostname
|
||||
$(INSTALL) -d $(SYSROOT)/etc
|
||||
$(INSTALL) -m 644 etc/hostname $(SYSROOT)/etc/hostname
|
||||
|
||||
$(SYSROOT)/etc/hosts: etc/hosts
|
||||
$(INSTALL) -d $(SYSROOT)/etc
|
||||
$(INSTALL) -m 644 etc/hosts $(SYSROOT)/etc/hosts
|
||||
|
|
Loading…
Reference in New Issue