Ajout : configuration tmux
This commit is contained in:
parent
8cbb413615
commit
2defbc140b
2 changed files with 11 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -13,10 +13,12 @@ SRCD := src
|
|||
SRC_QEMU_HOME := qemu
|
||||
SRC_QEMU_BIN := $(SRC_QEMU_HOME)/bin
|
||||
SRC_LAUNCHERSD := $(SRC_QEMU_HOME)/launchers
|
||||
SRC_TMUX_CONF := $(SRC_QEMU_HOME)/tmux.conf
|
||||
# Actual qemu Unix user home
|
||||
QEMU_HOME := $(shell echo ~$(QEMU_USER))
|
||||
QEMU_BIN := $(QEMU_HOME)/bin
|
||||
LAUNCHERSD := $(QEMU_HOME)/launchers
|
||||
TMUX_CONF := $(QEMU_HOME)/.tmux.conf
|
||||
|
||||
# Names of all qemush modules
|
||||
SRC_MODULES_NAMES := $(notdir $(wildcard $(SRC_QEMU_BIN)/*))
|
||||
|
@ -43,7 +45,7 @@ C_BINARIES := $(addprefix $(QEMU_BIN)/,$(SRC_C_SOURCES_NAMES))
|
|||
QEMUSH_DIRS_NAMES := bin launchers disks
|
||||
QEMUSH_DIRS := $(addprefix $(QEMU_HOME)/,$(QEMUSH_DIRS_NAMES))
|
||||
|
||||
install: $(QEMUSH_DIRS) $(MODULES) $(C_BINARIES) $(QEMUSH) $(LAUNCHERS)
|
||||
install: $(QEMUSH_DIRS) $(MODULES) $(C_BINARIES) $(QEMUSH) $(LAUNCHERS) $(TMUX_CONF)
|
||||
|
||||
$(QEMUSH_DIRS):
|
||||
$(SUDO_QEMU) mkdir -p $@
|
||||
|
@ -61,3 +63,6 @@ $(C_BINARIES): $(QEMU_BIN)%: $(SRCD)%$(SRC_FMT)
|
|||
|
||||
$(LAUNCHERS): $(LAUNCHERSD)%: $(SRC_LAUNCHERSD)%
|
||||
$(SUDO_QEMU) install -m $(BINS_MODE) $^ $@
|
||||
|
||||
$(TMUX_CONF): $(SRC_TMUX_CONF)
|
||||
$(SUDO_QEMU) install -m 640 $^ $@
|
||||
|
|
5
qemu/tmux.conf
Normal file
5
qemu/tmux.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Keep tmux sessions visible after exit
|
||||
set -g remain-on-exit on
|
||||
|
||||
# Override the nologin directive
|
||||
set -g default-shell /bin/sh
|
Loading…
Reference in a new issue