Enable monitor interface on Kali by default

This commit is contained in:
MaMe82 2018-10-05 23:19:21 +02:00
parent 8840ee16c8
commit cd965a90fd
2 changed files with 22 additions and 1 deletions

@ -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/

21
dist/P4wnP1-kali.service vendored Normal file

@ -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