From cd965a90fd46f0a84f629e53bf42144bcec17086 Mon Sep 17 00:00:00 2001 From: MaMe82 Date: Fri, 5 Oct 2018 23:19:21 +0200 Subject: [PATCH] Enable monitor interface on Kali by default --- Makefile | 2 +- dist/P4wnP1-kali.service | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 dist/P4wnP1-kali.service diff --git a/Makefile b/Makefile index 59542ad..28f027b 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ installkali: cp build/P4wnP1_service /usr/local/bin/ cp build/P4wnP1_cli /usr/local/bin/ - cp dist/P4wnP1.service /etc/systemd/system/P4wnP1.service + cp dist/P4wnP1-kali.service /etc/systemd/system/P4wnP1.service # copy over keymaps, scripts and www data mkdir -p /usr/local/P4wnP1 cp -R dist/keymaps /usr/local/P4wnP1/ diff --git a/dist/P4wnP1-kali.service b/dist/P4wnP1-kali.service new file mode 100644 index 0000000..50b595e --- /dev/null +++ b/dist/P4wnP1-kali.service @@ -0,0 +1,21 @@ +[Unit] +Description=P4wnP1 Startup Service +#After=systemd-modules-load.service +After=local-fs.target +DefaultDependencies=no +Before=sysinit.target + +[Service] +Type=simple +#Type=forking +#RemainAfterExit=yes +ExecStartPre=/usr/sbin/iw phy phy0 interface add wlan0mon type monitor +ExecStart=/usr/local/bin/P4wnP1_service +#StandardOutput=journal+console +#StandardError=journal+console +StandardOutput=journal +StandardError=journal + +[Install] +WantedBy=multi-user.target +#WantedBy=sysinit.target