forked from DamionGans/ubuntu-wsl2-systemd-script
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
20 lines (15 loc) · 793 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TMPDIR ?= /var/tmp
all:
@echo Run \'sudo make install\' to install.
install:
@echo Online install for Ubuntu WSL2 systemd Hack
curl https://raw.githubusercontent.com/alanmburr/ubuntu-wsl2-systemd-script/master/ubuntu-wsl2-systemd-script.sh | bash
@echo Run \'sudo make disable\' to disable systemd hack
@echo Run \'sudo make uninstall\' to uninstall systemd hack
uninstall:
@echo Online uninstall for Ubuntu WSL2 systemd Hack
curl https://raw.githubusercontent.com/alanmburr/ubuntu-wsl2-systemd-script/master/uninstall.sh | bash
disable:
@echo Offline systemd Hack disable
@sudo grep -v "source /usr/sbin/start-systemd-namespace" /etc/bash.bashrc > $(TMPDIR)/tmpfile && mv $(TMPDIR)/tmpfile /etc/bash.bashrc
@echo Run \'sudo make uninstall\' to fully uninstall