From 7a7a043b2f6d92b21b455430721cfff7734cdd00 Mon Sep 17 00:00:00 2001 From: Giulio Date: Fri, 22 May 2020 14:10:44 +0200 Subject: [PATCH] Fix permissions and CRLF --- conf/etc/init.d/S10cfgbin | 40 +++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) mode change 100644 => 100755 conf/etc/init.d/S10cfgbin diff --git a/conf/etc/init.d/S10cfgbin b/conf/etc/init.d/S10cfgbin old mode 100644 new mode 100755 index 6bb31bd..36db9bf --- a/conf/etc/init.d/S10cfgbin +++ b/conf/etc/init.d/S10cfgbin @@ -1,20 +1,20 @@ -#!/bin/sh - -case "$1" in - start) - printf "Starting cfgbin: " - /usr/sbin/cfgbin - test -f /etc/serial || exit 0 - test -f /etc/ssid || exit 0 - test -f /etc/wpa || exit 0 - $SSID=`cat /etc/ssid` - $WPA=`cat /etc/wpa` - sed -i "s/{{SSID}}/$SSID/g" /etc/hostapd.conf - sed -i "s/{{WPA}}/$WPA/g" /etc/hostapd.conf - ;; - *) - echo "Usage: $0 {start}" - exit 1 -esac - -exit 0 \ No newline at end of file +#!/bin/sh + +case "$1" in + start) + printf "Starting cfgbin: " + /usr/sbin/cfgbin + test -f /etc/serial || exit 0 + test -f /etc/ssid || exit 0 + test -f /etc/wpa || exit 0 + $SSID=`cat /etc/ssid` + $WPA=`cat /etc/wpa` + sed -i "s/{{SSID}}/$SSID/g" /etc/hostapd.conf + sed -i "s/{{WPA}}/$WPA/g" /etc/hostapd.conf + ;; + *) + echo "Usage: $0 {start}" + exit 1 +esac + +exit 0