Package: freedombox-setup
Severity: normal
Tags: patch

Dear Maintainer,

We have switched the dreamplug image in freedom-maker from "non-free" to
"free". This means we no longer support the built-in wifi for Dreamplug, but
will support USB wifi dongles with free firmware instead.

The freedombox-create-uap0 init script was used to enable the AP interface for
Dreamplug's built-in wifi. This patch will remove this init script. I have
tested this by upgrading the package and checking that the init script is
removed.



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-2-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
>From a869176724e7c0e998fc9310a01d84d8fd84b86b Mon Sep 17 00:00:00 2001
From: James Valleroy <[email protected]>
Date: Mon, 30 May 2016 22:16:22 -0400
Subject: [PATCH] Remove freedombox-create-uap0 init script. No longer
 including non-free firmware with Dreamplug image.

---
 .../freedombox-setup.freedombox-create-uap0.init   | 41 ----------------------
 debian/freedombox-setup.maintscript                |  1 +
 debian/rules                                       |  1 -
 3 files changed, 1 insertion(+), 42 deletions(-)
 delete mode 100644 debian/freedombox-setup.freedombox-create-uap0.init

diff --git a/debian/freedombox-setup.freedombox-create-uap0.init b/debian/freedombox-setup.freedombox-create-uap0.init
deleted file mode 100644
index ffc9e7f..0000000
--- a/debian/freedombox-setup.freedombox-create-uap0.init
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-### BEGIN INIT INFO
-# Provides:          freedombox-create-uap0
-# Default-Start:     2 3 4 5
-# Default-Stop:
-# Required-Start:    $network $remote_fs $syslog
-# Required-Stop:     $remote_fs $syslog
-# X-Start-Before:    $tor
-# Short-Description: Create uap0 interface when needed
-# Description:
-#   Script to create uap0 network interface when needed for mwifiex.
-### END INIT INFO
-
-LOGFILE=/var/log/freedombox-create-uap0.log
-
-. /lib/lsb/init-functions
-
-exec > $LOGFILE 2>&1
-
-case "$1" in
-    start)
-        if ifconfig -a | grep -q mlan0 ; then
-            if ifconfig -a | grep -q uap0 ; then
-		log_success_msg "Interface uap0 already exists."
-            else
-                log_action_begin_msg "Creating uap0 interface"
-                iw phy phy0 interface add uap0 type __ap
-                log_action_end_msg 0
-            fi
-        else
-            log_success_msg "Interface mlan0 doesn't exist. Skip adding uap0."
-        fi
-	;;
-    stop|restart|force-reload)
-        # Do nothing
-        ;;
-    *)
-        log_success_msg "Usage: /etc/init.d/freedombox-create-uap0 {start}"
-        exit 1
-        ;;
-esac
diff --git a/debian/freedombox-setup.maintscript b/debian/freedombox-setup.maintscript
index 9d62ea0..d29ba4d 100644
--- a/debian/freedombox-setup.maintscript
+++ b/debian/freedombox-setup.maintscript
@@ -1,3 +1,4 @@
 mv_conffile /etc/init.d/first-run /etc/init.d/freedombox-first-run 0.0.43
 rm_conffile /etc/init.d/proxy 0.0.43
 rm_conffile /etc/init.d/freedombox-client-proxy 0.0.44
+rm_conffile /etc/init.d/freedombox-create-uap0 0.9.2~
diff --git a/debian/rules b/debian/rules
index 01209da..c9211e2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,4 +4,3 @@
 
 override_dh_installinit:
 	dh_installinit --no-start --name=freedombox-first-run -u"start 20 2 3 4 5 ."
-	dh_installinit --no-start --name=freedombox-create-uap0 -u"start 20 2 3 4 5 ."
-- 
2.8.1

Reply via email to