Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service file to fix symlink for wpa_supplicant.conf #337

Merged
merged 1 commit into from
Apr 5, 2017

Commits on Apr 5, 2017

  1. Service file to fix symlink for wpa_supplicant.conf

    Included script will make sure that if wpa_supplicant.conf is no
    longer a symlink but it and /boot/octopi-wpa-supplicant.txt exist,
    the selected wifi country will be extracted and written to
    /boot/octopi-wpa-supplicant.txt and then the symlink will be
    recreated. If wpa_supplicant.conf is completely gone, only the
    symlink will be recreated. Nothing will be done if
    /boot/octopi-wpa-supplicant.txt does not exist.
    
    The service file ensures that this check is done on every boot,
    after the local file system becomes available but before the
    networking gets initialized.
    
    This should solve guysoft#336
    
    Note that this requires systemd (Debian Jessie) - since current
    Raspbian starts SysV init scripts only after networking has
    started to initialized, it was impossible for me to create a
    SysV init script that fixes the symlink prior to network
    initialization.
    foosel committed Apr 5, 2017
    Configuration menu
    Copy the full SHA
    da0ecda View commit details
    Browse the repository at this point in the history