wireless access point

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

wireless access point

Postby tritron » Tue Aug 25, 2015 4:50 pm

I wonder if someone can help me setup wireless access point. I setup hostapd no issue. The bigest issu I am faced with is geting my wlan0 setup with address. On raspbian it seems easy but I can get wlan configured from netctl.
tritron
 
Posts: 83
Joined: Thu Jun 16, 2011 7:16 pm

Re: wireless access point

Postby moonman » Tue Aug 25, 2015 6:53 pm

Previously I had to write a small bash script that would do all setup, including launching hostapd. Then you can create a systemd service that executes the script on boot.
Pogoplug V4 | GoFlex Home | Raspberry Pi B 512 | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | |[armv5] How to install my.pogoplug.com service | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3121
Joined: Sat Jan 15, 2011 3:36 am
Location: Calgary, Canada

Re: wireless access point

Postby WarheadsSE » Tue Aug 25, 2015 8:06 pm

https://wiki.archlinux.org/index.php/So ... cess_point

I would suggest using systemd-networkd to configure the IP on wlan0 interface, and use it all via systemd.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6804
Joined: Mon Oct 18, 2010 2:12 pm

Re: wireless access point

Postby tritron » Wed Aug 26, 2015 3:51 pm

Does anyone has an idea on how to setup netctl to bringup wlan0 without connecting it to access point. This is very easy on raspbian but on arch linux.
tritron
 
Posts: 83
Joined: Thu Jun 16, 2011 7:16 pm

Re: wireless access point

Postby tritron » Fri Aug 28, 2015 4:41 am

I found howto that gives solution to my problem
Code: Select all
[Unit]
Description=Add static ip for wireless
Before=hostapd.service
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-wlan0.device
After=sys-subsystem-net-devices-wlan0.device

[Service]
Type=oneshot
ExecStart=/usr/sbin/ip addr add 192.168.5.1/24 dev wlan0 brd + dev wlan0

[Install]
WantedBy=multi-user.target
tritron
 
Posts: 83
Joined: Thu Jun 16, 2011 7:16 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 4 guests