use bashrc for start

This commit is contained in:
2026-08-28 17:44:04 +02:00
parent 2a4d25b1fc
commit 241bb704ef
4 changed files with 21 additions and 31 deletions
+6 -3
View File
@@ -47,9 +47,9 @@ setup-weston:
.PHONY: setup-rasp-config
setup-rasp-config:
if [ -z $(shell grep "include forge-invar.txt" "/boot/firmware/config.txt") ]; then sudo sh -c 'echo "include forge-invar.txt" >> /boot/firmware/config.txt'; fi
sudo $(PROJECT_DIR)/line_in_file.sh "include forge-invar.txt" "/boot/firmware/config.txt"
sudo $(PROJECT_DIR)/line_in_file.sh "vc4.tv_norm=PAL" "/boot/firmware/config.txt" "vc4.tv_norm"
sudo cp -f $(PROJECT_DIR)/system/config.ini /boot/firmware/forge-invar.txt
if [ -z $(shell grep "vc4.tv_norm" "/boot/firmware/cmdline.txt") ]; then sudo sh -c 'echo "vc4.tv_norm=PAL" >> /boot/firmware/cmdline.txt'; fi
.PHONY: setup-services
setup-services:
@@ -64,9 +64,12 @@ setup-user-services:
systemctl --user daemon-reload
systemctl --user enable weston
.PHONY: setup-bashrc
setup-bashrc:
$(PROJECT_DIR)/line_in_file.sh "make -C $(PROJECT_DIR) start-weston" "$(HOME)/.bashrc"
.PHONY: install
install: remove-passwd setup-rasp-config apt-install setup-weston setup-rasp-config setup-services setup-user-services
install: remove-passwd setup-rasp-config apt-install setup-weston setup-rasp-config setup-services setup-bashrc
.PHONY: clean
clean: