Package: freedombox-setup Version: 0.5 Severity: normal Tags: patch -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
There are some components that are not being used and are not even working currently. This make is it harder for us test and make major changes. Remove any such code. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJV2/Y1AAoJEDbDYUQMm8lxe6wP/2eNd+M5x0/vk86MqiLJaYBj +fB1weaJ8fphf4nTs+4WNXo9E4Z3CNCyK7aBKkOiaZvLYYiuchXbJ7mL7kXbcWIg +ETu35wvG18iyQpd4BkcPtM89Gk69to8lTtS++o/kFOeCyoYRk8ejFNjYZHWprUa /iVpSLzYZUnlK36IjBH3LWllE4sAaiKQyAfzgYIRmMRs5XJuHi9VBpFKmGTwSbrA djY6pOANiNzGkN58qnP3sdTX22UW/RZD1ETQAW97w/zJVYRSFk3jDOjlqScSbRW7 SyQzDFibAl+pctyoB/2UT+glZ8Bi6ETH/gVmLR6O8xtmJKJiD3GAA28yCaNfjz1Q MP+zU4+PoeHxQ1LJyh7SukHCmGOMrjk00Eemh4tZjEmklbKuj4jmTMOYC2XC7M9E bAWU3iMjwcezIl/UbEjDPgTsBLQev34y8aoxxHhl6cXFyiNR77m/bqRg4vXPaIgU au0Z+5v5swjw2+Dy+kg2LS5fY3OhcVVAERGnCn8Y7j2lawxFydloeLu5i4/hmnon H980XOtAeeBEBSbyGr7xLb2tDGVkI243JqnqhhfZ2ycAFHmOrtVJmdAl13MU121N 6GuWJL4o/PlJ0heGRVp+A3TIoyv4qAzi5PdldhV9NwHLYH0Xu9N6cWzeGnzgko5V sPximrR3hTOcOhhXM/gH =zDFQ -----END PGP SIGNATURE-----
>From 7c021be3c3eb84cc1936b1161d141b2ead0612e0 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa <[email protected]> Date: Thu, 13 Aug 2015 21:47:57 +0530 Subject: [PATCH 1/4] Remove unused OpenVPN setup file - When OpenVPN service is provided, it's setup and configuration will be in Plinth. --- setup.d/50_openvpn | 8 -------- 1 file changed, 8 deletions(-) delete mode 100755 setup.d/50_openvpn diff --git a/setup.d/50_openvpn b/setup.d/50_openvpn deleted file mode 100755 index d64e17e..0000000 --- a/setup.d/50_openvpn +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -# Disabled as it seem to be just cruft from earlier [pere 2013-10-28] -exit 0 - -mkdir -p /etc/openvpn -touch /etc/openvpn/static.key -touch /etc/openvpn/client.conf -- 2.1.4 >From faf2c2850f9103cad70b9f1c6a51af79ed9cbbaf Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa <[email protected]> Date: Thu, 13 Aug 2015 22:01:09 +0530 Subject: [PATCH 2/4] Remove unused GPG key generation - This must be implemented in Plinth first boot. --- first-run.d/20_gpg-key | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100755 first-run.d/20_gpg-key diff --git a/first-run.d/20_gpg-key b/first-run.d/20_gpg-key deleted file mode 100755 index 5acd609..0000000 --- a/first-run.d/20_gpg-key +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# -# see http://lists.gnupg.org/pipermail/gnupg-users/2003-March/017376.html - -# . /lib/lsb/init-functions - -#log_action_begin_msg "Creating GPG key" -#echo " Need to create other keys." -#if gpg --batch --gen-key ; then -# log_action_end_msg 0 -# else -# log_action_end_msg 1 -# fi -- 2.1.4 >From 48b09f964b7d9441df4ad0b7bf06efea1324ebe0 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa <[email protected]> Date: Sun, 16 Aug 2015 15:12:01 +0530 Subject: [PATCH 3/4] Remove referenceto a non-existing init script --- debian/rules | 1 - 1 file changed, 1 deletion(-) diff --git a/debian/rules b/debian/rules index 190d67f..01209da 100755 --- a/debian/rules +++ b/debian/rules @@ -4,5 +4,4 @@ override_dh_installinit: dh_installinit --no-start --name=freedombox-first-run -u"start 20 2 3 4 5 ." - dh_installinit --no-start --name=freedombox-client-proxy -u"start 20 2 3 4 5 ." dh_installinit --no-start --name=freedombox-create-uap0 -u"start 20 2 3 4 5 ." -- 2.1.4 >From e85537a6b5234a7235ae815e39d2c5ed02ffa307 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa <[email protected]> Date: Sun, 16 Aug 2015 16:01:32 +0530 Subject: [PATCH 4/4] Remove unused script copy2dream - It appears it is an artifact of a time when images where build without vmdebootstrap. - Only documentation in freedom-maker refers to it. --- sbin/copy2dream | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 sbin/copy2dream diff --git a/sbin/copy2dream b/sbin/copy2dream deleted file mode 100644 index 267c2b6..0000000 --- a/sbin/copy2dream +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh -# -# this script assumes the current root filesystem is the source, and the -# internal microSD on a DreamPlug is the target .. all existing content on -# the microSD card will be lost. -# - -# partition microSD card inside DreamPlug -echo "=> partition internal microSD card" -parted -s /dev/sda mklabel msdos -parted -s /dev/sda mkpart primary fat16 0 128 -parted -s /dev/sda mkpart primary ext2 128 100% - -# create filesystems on new partitions -echo "=> create filesystems on internal microSD card" -mkdosfs /dev/sda1 -mke2fs -j /dev/sda2 - -echo "=> mount target partitions" -mount /dev/sda2 /media -mkdir -p /media/boot -mount /dev/sda1 /media/boot - -echo "=> copy filesystem content from USB stick to target partitions" -(cd / ; tar cpSf - `/bin/ls | grep -v boot | grep -v proc | grep -v sys | grep -v media | grep -v dev`) | (cd /media ; tar xpf -) -# the following intentionally ignores subdirectories -cp /boot/* /media/boot/ - -echo "=> touch up target root partition" -mkdir /media/proc /media/sys /media/media /media/dev -mknod /media/dev/console c 5 1 -mknod /media/dev/random c 1 8 -mknod /media/dev/urandom c 1 9 -mknod /media/dev/null c 1 3 -mknod /media/dev/ptmx c 5 2 - -# patch up /etc/fstab entry for /boot -sed -e 's/sdc/sda/g' < /etc/fstab > /media/etc/fstab - -# flash the kernel and create the device's keys -chroot /media /etc/init.d/first-run - -echo "unmount target partitions" -umount /dev/sda1 -umount /dev/sda2 - -echo "=> installation complete, see docs to boot from internal microSD" -- 2.1.4

