Support cli only installation

Fix typo
This commit is contained in:
Lakindu Akash 2020-12-22 20:28:36 +05:30
parent 2b01e103b7
commit 34e7dabb67
No known key found for this signature in database
GPG Key ID: 87D9889F7A634A38
4 changed files with 16 additions and 3 deletions

View File

@ -8,6 +8,10 @@ install:
@echo "Installing..." @echo "Installing..."
cd src && $(MAKE) install cd src && $(MAKE) install
install-cli-only:
@echo "Installing command line interface only..."
cd src/scripts && $(MAKE) install
uninstall: uninstall:
@echo "Uninstalling..." @echo "Uninstalling..."
cd src && $(MAKE) uninstall cd src && $(MAKE) uninstall

View File

@ -21,9 +21,11 @@
![screenshot](docs/sc2.png) ![screenshot](docs/sc2.png)
### [Command line help and documentation](src/scripts/README.md) ### Command line help and documentation
If you only need the command line without GUI please read [Command line help and documentation](src/scripts/README.md) and use `create_ap` directly. Read [Command line help and documentation here](src/scripts/README.md).
If you only need the command-line without GUI run `make install-cli-only` as root user.
### Notes ### Notes

View File

@ -14,6 +14,13 @@ install:
install -CDm644 README.md $(DESTDIR)$(PREFIX)/share/doc/create_ap/README.md install -CDm644 README.md $(DESTDIR)$(PREFIX)/share/doc/create_ap/README.md
install -CDm755 wihotspot $(DESTDIR)$(BINDIR)/wihotspot install -CDm755 wihotspot $(DESTDIR)$(BINDIR)/wihotspot
install-cli-only:
install -CDm755 create_ap $(DESTDIR)$(BINDIR)/create_ap
install -CDm644 create_ap.conf $(DESTDIR)/etc/create_ap.conf
[ ! -d $(DESTDIR)/lib/systemd/system ] || install -CDm644 create_ap.service $(DESTDIR)/lib/systemd/system/create_ap.service
install -CDm644 bash_completion $(DESTDIR)$(PREFIX)/share/bash-completion/completions/create_ap
install -CDm644 README.md $(DESTDIR)$(PREFIX)/share/doc/create_ap/README.md
uninstall: uninstall:
rm -f $(DESTDIR)$(BINDIR)/create_ap rm -f $(DESTDIR)$(BINDIR)/create_ap
rm -f $(DESTDIR)/etc/create_ap.conf rm -f $(DESTDIR)/etc/create_ap.conf

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
# Start wihotspot_gui as root user # Start wihotspot-gui as root user
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/wihotspot-gui pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/wihotspot-gui