Browse Source

manually merge all changes from working tree

one should consider this as experimental and not tested, it can
and will break much things
master
Alf Gaida 4 years ago
parent
commit
05e7583a3c

+ 8
- 6
bin/fll_fstab_generator.c View File

@@ -176,7 +176,7 @@ static char* device_vfstype(struct udev_device *device)
return NULL;
}
blkid_probe_set_request(pr, BLKID_PROBREQ_TYPE);
blkid_probe_set_superblocks_flags(pr, BLKID_PROBREQ_TYPE);
if (ioctl(fd, BLKGETSIZE64, &size) != 0)
size = 0;
@@ -630,8 +630,6 @@ int main(int argc, char **argv)
}

udev_enumerate_add_match_subsystem(u_enum, "block");
udev_enumerate_add_match_property(u_enum, "DEVTYPE", "disk");
udev_enumerate_add_match_property(u_enum, "DEVTYPE", "partition");
udev_enumerate_scan_devices(u_enum);

u_first_list_ent = udev_enumerate_get_list_entry(u_enum);
@@ -639,15 +637,19 @@ int main(int argc, char **argv)
struct udev_device *device;
struct udev *context;
const char *name;
char dt[255];

context = udev_enumerate_get_udev(u_enum);
name = udev_list_entry_get_name(u_list_ent);
device = udev_device_new_from_syspath(context, name);
if (device == NULL)
continue;

if (device_flagged(device, opts.ignore_given,
opts.ignore_arg)) {
strcpy(dt,udev_device_get_property_value(device,"DEVTYPE"));
if (
((strncmp(dt,"disk",4)) && (strncmp(dt,"partition",9)))
||
(device_flagged(device, opts.ignore_given, opts.ignore_arg))
){
udev_device_unref(device);
continue;
}

+ 35
- 0
bin/fll_login View File

@@ -0,0 +1,35 @@
#!/bin/sh

[ -s /etc/default/distro ] && . /etc/default/distro

case "${lang}" in
cs_*) p="Stiskněte prosím Enter pro aktivaci této konzole." ;;
da_*) p="For at aktivere denne konsol, tast venligst retur." ;;
de_*) p="Bitte drücken Sie die Eingabetaste, um diese Konsole zu aktivieren." ;;
es_*) p="Por favor, pulse Intro para activar esta consola." ;;
it_*) p="Premere Invio per attivare questo terminale." ;;
ja_*) p="このコンソールをアクティブにするためEnterを押してください" ;;
nl_*) p="Druk op Enter om deze console te activeren." ;;
pl_*) p="Naciśnij Enter aby aktywować tę konsolę." ;;
pt_*) p="Por favor, pressione a tecla Enter para activar esta consola." ;;
ro_*) p="Vă rog, apăsți tasta Enter pentru a activa această consolă." ;;
ru_*) p="Нажмите Enter, чтобы активировать эту консоль." ;;
*) p="Please press Enter to activate this console." ;;
esac

# Let user know this shell is no longer activatable when fll_login exits
trap "echo ; echo ${0##*/} Terminated ; exit" TERM

read -p "${p} " nothing

if getent passwd "${FLL_LIVE_USER}" >/dev/null 2>&1; then
FLL_LIVE_USER_HOME=$(getent passwd ${FLL_LIVE_USER} | cut -d\: -f 6)
if [ ! -e "${FLL_LIVE_USER_HOME}/.hushlogin" ]; then
:> "${FLL_LIVE_USER_HOME}/.hushlogin"
chown "${FLL_LIVE_USER}:${FLL_LIVE_USER}" \
"${FLL_LIVE_USER_HOME}/.hushlogin"
fi
exec /bin/login -f "${FLL_LIVE_USER}"
else
exec /bin/login -f root
fi

+ 1
- 3
bin/fll_xorgconfig View File

@@ -13,9 +13,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this package; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
# MA 02110-1301, USA.
# along with this package; if not, see <http://www.gnu.org/licenses>
#
# On Debian GNU/Linux systems, the text of the GPL license can be
# found in /usr/share/common-licenses/GPL.

+ 33
- 0
bin/setgconfschemas View File

@@ -0,0 +1,33 @@
#!/bin/bash

# XKBMODEL="linux"
# XKBLAYOUT="de"
# XKBVARIANT="nodeadkeys"
. /etc/default/keyboard

# LANG=de_DE.utf8
. /etc/default/locale



case $LANG in
de_DE.utf8)
sed -e "s/@LAYOUTS@/'de','us'/" \
/usr/share/fll-live-initscripts/90_keyboardlayouts.gschema.override \
> /usr/share/glib-2.0/schemas/90_keyboardlayouts.gschema.override
;;
en_US.utf8)
sed -e "s/@LAYOUTS@/'us','de'/" \
/usr/share/fll-live-initscripts/90_keyboardlayouts.gschema.override \
> /usr/share/glib-2.0/schemas/90_keyboardlayouts.gschema.override
;;
*)
XLANG=${LANG:0:2}
sed -e "s/@LAYOUTS@/'${XLANG}','us'/" \
/usr/share/fll-live-initscripts/90_keyboardlayouts.gschema.override \
> /usr/share/glib-2.0/schemas/90_keyboardlayouts.gschema.override

;;
esac

glib-compile-schemas /usr/share/glib-2.0/schemas/

+ 3
- 3
bin/setlxdekblanguages View File

@@ -15,20 +15,20 @@ case $LANG in
de_DE.utf8)
sed -e "s/@VARIANTSLIST@/,/" \
-e "s/@LAYOUTSLIST@/de,us/" \
/usr/share/siduction-settings-lxde-*/etc/xdg/lxpanel/LXDE/panels/panel \
/usr/share/*-lxde-settings/etc/xdg/lxpanel/LXDE/panels/panel \
> /etc/xdg/lxpanel/LXDE/panels/panel
;;
en_US.utf8)
sed -e "s/@VARIANTSLIST@/,/" \
-e "s/@LAYOUTSLIST@/us,de/" \
/usr/share/siduction-settings-lxde-*/etc/xdg/lxpanel/LXDE/panels/panel \
/usr/share/*-lxde-settings/etc/xdg/lxpanel/LXDE/panels/panel \
> /etc/xdg/lxpanel/LXDE/panels/panel
;;
*)
XLANG=${LANG:0:2}
sed -e "s/@VARIANTSLIST@/,/" \
-e "s/@LAYOUTSLIST@/${XLANG},us/" \
/usr/share/siduction-settings-lxde-*/etc/xdg/lxpanel/LXDE/panels/panel \
/usr/share/*-lxde-settings/etc/xdg/lxpanel/LXDE/panels/panel \
> /etc/xdg/lxpanel/LXDE/panels/panel
;;
esac

+ 286
- 412
debian/changelog View File

@@ -1,624 +1,498 @@
fll-live-initscripts (2014.12.10) unstable; urgency=medium
fll-live-initscripts (4.3.6) UNRELEASED; urgency=medium

* merge upstream
* NOT RELEASED YET

-- Alf Gaida <agaida@siduction.org> Wed, 10 Dec 2014 22:54:50 +0100
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sat, 12 Mar 2016 06:34:33 +0100

fll-live-initscripts (2014.11.06) unstable; urgency=medium
fll-live-initscripts (4.3.5) unstable; urgency=medium

* setlxdelanguages -> setlxdekblanguages
* sed fixed in setlxdekblanguages
* fix keyboard variants
* move sddm hacking above the success message.
* move display manager setup into its own function, setup_dm().
* refactor the selection of the default window manager into the setup_wm()
function.
* add overlay/ overlayfs as a known unioning filesystem.
* fll-reboot: minor coding style fixes.
* fll-locales: minor coding style fixes, strictly whitespace-only.
* refactor fll-shell into fll-adduser.

-- Alf Gaida <agaida@siduction.org> Wed, 05 Nov 2014 23:49:50 +0100
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sat, 12 Mar 2016 06:34:22 +0100

fll-live-initscripts (2014.10.14) unstable; urgency=medium
fll-live-initscripts (4.3.4) unstable; urgency=medium

* cleanup
* drop trailing whitespace.
* fll-xdm: don't exit prematurely, after fll-desktop and fll-xdm have been
merged.
* drop now obsolete linitian override.

-- Alf Gaida <agaida@siduction.org> Tue, 14 Oct 2014 01:51:50 +0200
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sat, 12 Mar 2016 04:11:24 +0100

fll-live-initscripts (2014.10.13.3) unstable; urgency=medium
fll-live-initscripts (4.3.3) unstable; urgency=medium

* setupcon without --save-only
* drop dpi= cheatcode, it's not supported by any current release DM anyways.
* drop explicit display manager selection based on the preferences made by
different desktop environments, we have never used this code and even in
its absence, any display manager must be able to start any desktop
environment or there would be bugs to squash.
* simplify WM/ XSESSION definitions.
* drop nbd support for the time being, it hasn't supported by pyfll for a
while.
* fix F.U.L.L.S.T.O.R.Y. homepage URL.
* fll-adduser: drop fake dependencies on keyboard-setup and console-setup.
* simplify boot ordering interdependencies by moving fll-xdm to runlevel S
as well.

-- Alf Gaida <agaida@siduction.org> Mon, 13 Oct 2014 19:50:40 +0200
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sat, 12 Mar 2016 03:19:57 +0100

fll-live-initscripts (2014.10.13.2) unstable; urgency=medium
fll-live-initscripts (4.3.2) unstable; urgency=medium

* fll-locales wanted by getty.target
* fix fll-live-initscripts removal, by "starting" fll-reboot in runlevels
1-5, in order to beat insserv's new heuristics.

-- Alf Gaida <agaida@siduction.org> Mon, 13 Oct 2014 16:55:57 +0200
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Wed, 09 Dec 2015 23:33:49 +0100

fll-live-initscripts (2014.10.13.1) unstable; urgency=medium
fll-live-initscripts (4.3.1) unstable; urgency=medium

* fll-locales wanted by multiuser.target
* fix if clauses.
* fix case sensitive lxqt XSESSION information.

-- Alf Gaida <agaida@siduction.org> Mon, 13 Oct 2014 16:34:06 +0200
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Fri, 27 Nov 2015 01:23:47 +0100

fll-live-initscripts (2014.10.13) unstable; urgency=medium
fll-live-initscripts (4.3.0) unstable; urgency=medium

* wanted by basic.target
* fix lightdm autologin.
* add support for lxdm autologin.
* add support for lxqt.

-- Alf Gaida <agaida@siduction.org> Mon, 13 Oct 2014 15:57:20 +0200
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Fri, 27 Nov 2015 00:43:15 +0100

fll-live-initscripts (2014.10.12) unstable; urgency=medium
fll-live-initscripts (4.2.3) unstable; urgency=medium

* first refinement - really install the service-files :)
* new standards 3.9.6
* rebuild with gcc-5.

-- Alf Gaida <agaida@siduction.org> Mon, 13 Oct 2014 02:45:01 +0200
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Fri, 31 Jul 2015 23:46:13 +0200

fll-live-initscripts (2014.10.11) unstable; urgency=medium
fll-live-initscripts (4.2.2) unstable; urgency=medium

* next attempt for F2
* split fll-live-initscripts.service, fll-locales before console-setup.service
* stop configuring special wallpapers for kdm, we don't ship kdm themes
anymore.

-- Alf Gaida <agaida@siduction.org> Mon, 13 Oct 2014 02:21:22 +0200
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Tue, 21 Jul 2015 00:15:20 +0200

fll-live-initscripts (2014.10.07.2) unstable; urgency=medium
fll-live-initscripts (4.2.1) unstable; urgency=medium

* changed fll-live-initscripts service to work F2 in multi-user mode
(third attempt)
* drop pstore nuking, this has been part of our last release already and
all associated issues should be sorted by now, given that efibootmgr is
called semi-regularly. Modern kernels don't dump oopses to pstore anymore,
so either the local hardware has no problems with EFI variable garbage
collection or it would have blown up ages ago, so avoid potentially risky
pstore manipulation on each live boot.

-- Angelescu Ovidiu <convbsd@siduction.org> Tue, 07 Oct 2014 17:31:17 +0300
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Mon, 13 Jul 2015 04:43:55 +0200

fll-live-initscripts (2014.10.07.1) unstable; urgency=medium
fll-live-initscripts (4.2.0) unstable; urgency=medium

* changed fll-live-initscripts service to work F2 in multi-user mode
(second attempt)
* update for KDE5.

-- Angelescu Ovidiu <convbsd@siduction.org> Tue, 07 Oct 2014 16:37:17 +0300
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sun, 12 Jul 2015 02:24:09 +0200

fll-live-initscripts (2014.10.07) unstable; urgency=medium
fll-live-initscripts (4.1.36) unstable; urgency=medium

* changed fll-live-initscripts service to work F2 in multi-user mode
(first attempt)
* fix brown paper b[au]g when defining setup_sddm().
* sort setup_* functions.

-- Angelescu Ovidiu <convbsd@siduction.org> Tue, 07 Oct 2014 15:48:49 +0300
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Thu, 02 Jul 2015 22:16:07 +0200

fll-live-initscripts (2014.10.04) unstable; urgency=medium
fll-live-initscripts (4.1.35) unstable; urgency=medium

* readded debugging capabilities to fll-* scripts
* changed fll-live-initscripts service
* merge fll-xdm and fll-desktop.
* add support for sddm auto-login.

-- Angelescu Ovidiu <convbsd@siduction.org> Sat, 04 Oct 2014 22:18:35 +0300
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Thu, 02 Jul 2015 22:04:14 +0200

fll-live-initscripts (2014.09.29) unstable; urgency=medium
fll-live-initscripts (4.1.34) unstable; urgency=medium

* service fixed by musca
* networkd-one: systemd-wait-online is not enough, check route also.

-- Alf Gaida <agaida@siduction.org> Mon, 29 Sep 2014 22:41:31 +0200
-- Niall Walsh <niallwalsh@celtux.org> Sat, 20 Jun 2015 04:31:04 +0100

fll-live-initscripts (2014.09.28) unstable; urgency=medium
fll-live-initscripts (4.1.33) unstable; urgency=medium

* typo in fll-live.initscripts.service fixed
* fstab_generator: get DEVTYPE property as match_property seems to be broken.

-- Alf Gaida <agaida@siduction.org> Sun, 28 Sep 2014 18:22:20 +0200
-- Niall Walsh <niallwalsh@celtux.org> Wed, 17 Jun 2015 20:17:59 +0100

fll-live-initscripts (2014.09.27) unstable; urgency=medium
fll-live-initscripts (4.1.32) unstable; urgency=medium

* some sorting in service files
* dh_installinit override
* default systemd-resolved based configuration for DHCP based networks to
UseDomains=yes, depend on systemd-sysv (>= 217-2~) accordingly.

-- Alf Gaida <agaida@siduction.org> Sun, 28 Sep 2014 00:21:13 +0200
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Thu, 21 May 2015 05:54:55 +0200

fll-live-initscripts (2014.09.26) unstable; urgency=medium
fll-live-initscripts (4.1.31) unstable; urgency=medium

* changed fll-live-xorgconfig service file
* run fll-snakeoil before fll-locales to avoid debconf locking

-- Angelescu Ovidiu <convbsd@siduction.org> Fri, 26 Sep 2014 05:02:16 +0300
-- Niall Walsh <niallwalsh@celtux.org> Thu, 19 Feb 2015 19:38:06 +0000

fll-live-initscripts (2014.09.24.1) unstable; urgency=medium
fll-live-initscripts (4.1.30) unstable; urgency=medium

* preliminary fll-live-initscripts with systemd service integration
* drop explicit dependencies on ifplugd, ifupdown and iproute2, neither are
(strictly) required anymore.
* avoid deprecated blkid APIs.
* allow parallel building.
* explicitly specify the package debhelper is supposed to work on.
* add systemd unit replacing fll-snakeoil-cert.init.

-- Angelescu Ovidiu <convbsd@siduction.org> Wed, 24 Sep 2014 16:47:43 +0300
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Wed, 18 Feb 2015 23:43:27 +0100

fll-live-initscripts (2014.09.24) unstable; urgency=medium
fll-live-initscripts (4.1.29) unstable; urgency=medium

* added fll-live-initscripts as a depend for fll-live-xorgconfig
* drop versioned dependency on dh-systemd, it's provided in stable.

-- Angelescu Ovidiu <convbsd@siduction.org> Wed, 24 Sep 2014 00:23:47 +0300
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sun, 04 Jan 2015 01:37:15 +0100

fll-live-initscripts (2014.09.23.1) unstable; urgency=medium
fll-live-initscripts (4.1.28) unstable; urgency=medium

* added in control dh-systemd depend
* bump standards version to 3.9.6, no changes necessary.
* convert to machine readable copyright.
* move fll-networkd-one to /usr/share/fll-live-initscripts/, it's not meant
to be used by hand.

-- Angelescu Ovidiu <convbsd@siduction.org> Tue, 23 Sep 2014 23:47:50 +0300
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Mon, 08 Dec 2014 04:24:08 +0100

fll-live-initscripts (2014.09.23) unstable; urgency=medium
fll-live-initscripts (4.1.27) unstable; urgency=medium

* fll-live-xorgconfig using systemd service
* pickup liveapt i18n from secondary squashfs.

-- Angelescu Ovidiu <convbsd@siduction.org> Tue, 23 Sep 2014 23:15:00 +0300
-- Niall Walsh <niallwalsh@celtux.org> Mon, 08 Dec 2014 03:17:21 +0000

fll-live-initscripts (2014.09.22) unstable; urgency=medium
fll-live-initscripts (4.1.26) unstable; urgency=medium

* removed fll-live-xorgconfig depend from fll-live-initscripts
* fstab_generator: fixup devmapper device handling.

-- Angelescu Ovidiu <convbsd@siduction.org> Mon, 22 Sep 2014 01:06:57 +0300
-- Niall Walsh <niallwalsh@celtux.org> Mon, 10 Nov 2014 22:03:14 +0000

fll-live-initscripts (2014.09.16) unstable; urgency=medium
fll-live-initscripts (4.1.25) unstable; urgency=medium

* readded fll-live-xorgconfig
* change hwclock calls to match /lib/udev/hwclock

-- Angelescu Ovidiu <convbsd@siduction.org> Tue, 16 Sep 2014 01:08:32 +0300
-- Niall Walsh <niallwalsh@celtux.org> Tue, 28 Oct 2014 17:18:58 +0000

fll-live-initscripts (2014.09.09.1) unstable; urgency=medium
fll-live-initscripts (4.1.24) unstable; urgency=medium

* removed unused/duplicate code
* write networkd config in /etc not /run so it carries to install.
* some style/comment improvements for the perl fll-networkd-one program.

-- Angelescu Ovidiu <convbsd@siduction.org> Sun, 07 Sep 2014 21:39:30 +0300
-- Niall Walsh <niallwalsh@celtux.org> Thu, 09 Oct 2014 16:13:48 +0100

fll-live-initscripts (2014.09.09) unstable; urgency=medium
fll-live-initscripts (4.1.23) unstable; urgency=medium

* initscripts should not handle networking
* stop stopping or enabling networkd.

-- Alf Gaida <agaida@siduction.org> Sun, 07 Sep 2014 12:40:36 +0200
-- Niall Walsh <niallwalsh@celtux.org> Tue, 07 Oct 2014 00:05:55 +0100

fll-live-initscripts (2014.09.08) unstable; urgency=medium
fll-live-initscripts (4.1.22) unstable; urgency=medium

* reactivate distro-defaults.install
* replace udev/ifup networking code with networkd based setup.

-- Alf Gaida <agaida@siduction.org> Sun, 07 Sep 2014 01:26:01 +0200
-- Niall Walsh <niallwalsh@celtux.org> Sun, 05 Oct 2014 17:21:37 +0100

fll-live-initscripts (2014.09.07) unstable; urgency=medium
fll-live-initscripts (4.1.21) unstable; urgency=medium

* Merge from fullstory;
* generate fstab mounts in /disks instead of /media.
* move fll-init into the initramfs.
* drop insserv overrides for various display managers, this isn't functional
under system; clean up dpkg-triggers.
* drop fll-xorgconfig.
* fix lintian problems with the new fll-network initscript:
- init.d-script-missing-dependency-on-remote_fs
- init.d-script-should-depend-on-virtual-facility ($network)
* rework networking
- do not exec from fll.net.agent
- add fll-network init to create flag when networking has run and
re-run fll.net.agent directly on previously seen interfaces
- 000fll ends with : so teardown tests do not make it appear to fail
* fix typo triggering init.d-script-does-not-provide-itself.
* add fll-snakeoil-cert.init.
* sort dh_installinit calls.
* guard sysfs check for virtual machines.
* don't prompt for ejecting in a virtual machine, unless explicitly
requested ("doprompt" cheatcode).

-- Alf Gaida <agaida@siduction.org> Sun, 07 Sep 2014 00:20:27 +0200

fll-live-initscripts (2014.08.09) unstable; urgency=medium

* prepare lxde keyboard setting

-- Alf Gaida <agaida@siduction.org> Sat, 09 Aug 2014 01:00:07 +0200

fll-live-initscripts (2014.05.07) unstable; urgency=medium

* session is now lxqt

-- Alf Gaida <agaida@siduction.org> Wed, 07 May 2014 16:54:17 +0200

fll-live-initscripts (2014.04.10) unstable; urgency=medium

* and next, session is no lxde-qt - thats it!

-- Alf Gaida <agaida@siduction.org> Thu, 10 Apr 2014 00:48:33 +0200

fll-live-initscripts (2014.04.09.1) unstable; urgency=medium

* next try

-- Alf Gaida <agaida@siduction.org> Wed, 09 Apr 2014 03:17:11 +0200

fll-live-initscripts (2014.04.09) unstable; urgency=medium

* sessions like rqt
* hope, that will fix the autologin issue

-- Alf Gaida <agaida@siduction.org> Wed, 09 Apr 2014 01:50:00 +0200

fll-live-initscripts (2014.04.05) unstable; urgency=medium

* comment for lxqt changed

-- Alf Gaida <agaida@siduction.org> Sat, 05 Apr 2014 16:57:06 +0200

fll-live-initscripts (2014.01.10) unstable; urgency=medium

* version bumped
* few dependencies between the packages

-- Alf Gaida <agaida@siduction.org> Thu, 09 Jan 2014 23:26:23 +0100

fll-live-initscripts (2014.01.09) unstable; urgency=medium

* version bump (used for fll-live-xorgconfig)

-- Alf Gaida <agaida@siduction.org> Thu, 09 Jan 2014 21:28:06 +0100

fll-live-initscripts (2013.12.11) unstable; urgency=medium

* bump version to date-based
* explicitly use libudev1 as dependency
* bump standardes to 3.9.5

-- Alf Gaida <agaida@siduction.org> Wed, 11 Dec 2013 23:08:28 +0100

fll-live-initscripts (2013.08.25) unstable; urgency=low

* new numbering
* fll-login - senseless 'hit enter' removed

-- Alf Gaida <agaida@siduction.org> Sun, 25 Aug 2013 13:24:03 +0200

fll-live-initscripts (3.16.10) unstable; urgency=low

* removed old debris (fullstory-link and XBSC-Orig.-Maintainer
* unused lintian-overrides removed

-- Alf Gaida <agaida@siduction.org> Tue, 04 Jun 2013 22:19:52 +0200

fll-live-initscripts (3.16.9) unstable; urgency=low

[ Ovidiu Angelescu ]
* added cinnamon support in fll-desktop.init

[ Alf Gaida ]
* rebuild refs #1241

-- Alf Gaida <agaida@siduction.org> Tue, 04 Jun 2013 22:05:04 +0200

fll-live-initscripts (3.16.8) unstable; urgency=low

* fix for qxkb part 2, closes #1179
-- Niall Walsh <niallwalsh@celtux.org> Fri, 05 Sep 2014 02:04:44 +0100

-- Alf Gaida <agaida@siduction.org> Mon, 06 May 2013 02:35:57 +0200
fll-live-initscripts (4.1.20) unstable; urgency=medium

fll-live-initscripts (3.16.7) unstable; urgency=low

* fix for qxkb part 1

-- Alf Gaida <agaida@siduction.org> Mon, 06 May 2013 00:43:24 +0200

fll-live-initscripts (3.16.6) unstable; urgency=low

[ Ovidiu Angelescu ]
* removed fll-xdm because now it's in pyfll 700-x-siduction.postinst

[ Alf Gaida ]
* rebuild

-- Alf Gaida <agaida@siduction.org> Sat, 06 Apr 2013 03:49:38 +0200

fll-live-initscripts (3.16.5) unstable; urgency=low

* set_accepted_lang() for distribution languages
refs #1031

-- Alf Gaida <agaida@siduction.org> Sat, 08 Dec 2012 01:24:54 +0100

fll-live-initscripts (3.16.4) unstable; urgency=low

* rebuild after final checks, closes #994

-- Alf Gaida <agaida@siduction.org> Sat, 01 Dec 2012 09:59:19 +0100

fll-live-initscripts (3.16.3) unstable; urgency=low

* siduction-repo dont exist anymore, removed question for it
* removed some more moronic typos

-- Alf Gaida <agaida@siduction.org> Fri, 30 Nov 2012 22:32:50 +0100

fll-live-initscripts (3.16.2) unstable; urgency=low

* some typos removed

-- Alf Gaida <agaida@siduction.org> Fri, 30 Nov 2012 21:39:50 +0100

fll-live-initscripts (3.16.1) unstable; urgency=low

* fll-live-initscripts.fll-locales.init - repo-part rewritten

-- Alf Gaida <agaida@siduction.org> Fri, 30 Nov 2012 21:11:27 +0100

fll-live-initscripts (3.15.9) unstable; urgency=low

* typo removed

-- Alf Gaida <agaida@siduction.org> Thu, 29 Nov 2012 17:06:53 +0100

fll-live-initscripts (3.15.8) unstable; urgency=low

* languagesettings for rqt added

-- Alf Gaida <agaida@siduction.org> Thu, 29 Nov 2012 16:29:29 +0100

fll-live-initscripts (3.15.7) unstable; urgency=low

[ Ovidiu Angelescu ]
* For nox added test condition in fll-network to not be created pkla file
(in nox we don't use polkit)

[ Alf Gaida ]
* fixes in debian/copyright
* ignore warnings about hardening, this should eventually fixed later

-- Alf Gaida <agaida@siduction.org> Sat, 08 Sep 2012 22:17:46 +0200

fll-live-initscripts (3.15.6) unstable; urgency=low
* move fll-init into the initramfs.

* moved code for gdm3 background to desktop-defaults-gnome
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sat, 30 Aug 2014 23:03:52 +0200

-- Angelescu Ovidiu <mrhsaacdoh@gmail.com> Fri, 19 Aug 2012 01:22:15 +0300
fll-live-initscripts (4.1.19) unstable; urgency=medium

fll-live-initscripts (3.15.5) unstable; urgency=low
* drop insserv overrides for various display managers, this isn't functional
under system; clean up dpkg-triggers.

* removed code for gdm3 background rendering option GDM_BACKGROUND_RENDERING_OPTION
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Wed, 13 Aug 2014 04:37:27 +0200

-- Angelescu Ovidiu <mrhsaacdoh@gmail.com> Fri, 17 Aug 2012 01:39:15 +0300
fll-live-initscripts (4.1.18) unstable; urgency=medium

fll-live-initscripts (3.15.4) unstable; urgency=low
* drop fll-xorgconfig.
* fix lintian problems with the new fll-network initscript:
- init.d-script-missing-dependency-on-remote_fs
- init.d-script-should-depend-on-virtual-facility ($network)

* gdm3 background
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Wed, 13 Aug 2014 04:23:39 +0200

-- Angelescu Ovidiu <mrhsaacdoh@gmail.com> Thu, 16 Aug 2012 17:56:15 +0300
fll-live-initscripts (4.1.17) unstable; urgency=medium

fll-live-initscripts (3.15.3) unstable; urgency=low
* rework networking
- do not exec from fll.net.agent
- add fll-network init to create flag when networking has run and
re-run fll.net.agent directly on previously seen interfaces
- 000fll ends with : so teardown tests do not make it appear to fail

* End the debian-mirror-roulette and use http://http.debian.net
* Weigth our mirrors different. 60 % spline, 20 % delaware, 20 % p.s.o
* fixes #668
-- Niall Walsh <niallwalsh@celtux.org> Tue, 12 Aug 2014 14:21:32 +0100

-- Alf Gaida <agaida@siduction.org> Sun, 24 Jun 2012 17:56:15 +0200
fll-live-initscripts (4.1.16) unstable; urgency=medium

fll-live-initscripts (3.15.2) unstable; urgency=low
* rebuild with gcc-4.9.

* noch nen typo
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Thu, 12 Jun 2014 02:54:46 +0200

-- Alf Gaida <agaida@siduction.org> Fri, 22 Jun 2012 00:42:14 +0200
fll-live-initscripts (4.1.15) unstable; urgency=medium

fll-live-initscripts (3.15.1) unstable; urgency=low
* debian/control: switch Vcs tags to github.
* fix typo triggering init.d-script-does-not-provide-itself.

* distro-default.install typo fixed
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sun, 13 Apr 2014 22:32:39 +0200

-- Alf Gaida <agaida@siduction.org> Fri, 22 Jun 2012 00:25:48 +0200
fll-live-initscripts (4.1.14) unstable; urgency=medium

fll-live-initscripts (3.15.0) unstable; urgency=low
* add fll-snakeoil-cert.init.
* sort dh_installinit calls.

* fix umountfs //its a really dirty hack
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sun, 02 Mar 2014 17:59:51 +0100

-- Alf Gaida <agaida@siduction.org> Thu, 21 Jun 2012 23:25:33 +0200
fll-live-initscripts (4.1.13) unstable; urgency=medium

fll-live-initscripts (3.14.11) unstable; urgency=low
* guard sysfs check for virtual machines.

* fixed a typo in fll-network
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Tue, 11 Feb 2014 23:11:36 +0100

-- Torsten Wohlfarth <towo@siduction.org> Sun, 20 May 2012 18:42:33 +0200
fll-live-initscripts (4.1.12) unstable; urgency=low

fll-live-initscripts (3.14.10) unstable; urgency=low
* bump standards version to 3.9.5, no changes necessary.

* Added a workaround for the NM-problem (root), see http://debianforum.de/forum/viewtopic.php?p=861576#p861576
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Tue, 11 Feb 2014 22:02:24 +0100

-- Torsten Wohlfarth <towo@siduction.org> Sun, 20 May 2012 18:00:23 +0200
fll-live-initscripts (4.1.11) unstable; urgency=low

fll-live-initscripts (3.14.9) unstable; urgency=low
* don't prompt for ejecting in a virtual machine, unless explicitly
requested ("doprompt" cheatcode).

* fixed autologin for razorqt.
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Tue, 11 Feb 2014 21:58:58 +0100

-- Torsten Wohlfarth <towo@siduction.org> Sat, 19 May 2012 20:17:05 +0200
fll-live-initscripts (4.1.10) unstable; urgency=low

fll-live-initscripts (3.14.8) unstable; urgency=low
* stop hardcoding init sequencing.

* fixed a typo
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Thu, 14 Nov 2013 19:37:57 +0100

-- Torsten Wohlfarth <towo@siduction.org> Sat, 19 May 2012 16:46:37 +0200
fll-live-initscripts (4.1.9) unstable; urgency=low

fll-live-initscripts (3.14.7) unstable; urgency=low
* drop obsolete hal configuration (10-disable-swsusp.fdi).

* set password "live" user siducer.
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Tue, 05 Nov 2013 00:30:39 +0100

-- Torsten Wohlfarth <towo@siduction.org> Sat, 19 May 2012 16:09:07 +0200
fll-live-initscripts (4.1.8) unstable; urgency=low

fll-live-initscripts (3.14.6) unstable; urgency=low
* fix distro-defaults triggers:
- drop duplicate xdm trigger.
- add trigger for lightdm.
* make lintian a little happier:
- W: init.d-script-does-not-source-init-functions fll-shell

* realy fix lightdm autologin
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sun, 03 Nov 2013 14:22:24 +0100

-- Torsten Wohlfarth <towo@siduction.org> Sat, 19 May 2012 15:21:49 +0200
fll-live-initscripts (4.1.7) unstable; urgency=low

fll-live-initscripts (3.14.5) unstable; urgency=low
* drop obsolete upgrade compatibility code:
- hwclockfirst.sh is fixed since 2009.
- gdm (v2) is no more.

* Non-maintainer upload.
* fix lightdm autologin
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sun, 03 Nov 2013 14:11:37 +0100

-- Torsten Wohlfarth <towo@siduction.org> Sat, 19 May 2012 13:44:23 +0200
fll-live-initscripts (4.1.6) unstable; urgency=low

fll-live-initscripts (3.14.4) unstable; urgency=low
* drop kvm override for xserver-xorg-video-modesetting, it's no longer
required and actively harmful with the current versions.

* -# X-Start-Before: networking
* behebt auf jeden Fall den Abhängikeitfehler der Dienst
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Tue, 01 Oct 2013 01:42:38 +0200

-- Alf Gaida <agaida@siduction.org> Tue, 15 May 2012 11:03:19 +0200
fll-live-initscripts (4.1.5) unstable; urgency=low

fll-live-initscripts (3.14.3) unstable; urgency=low
* rebuild with gcc-4.8.

* /debian/fll-live-initscripts.fll-network.init - nix starten
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Thu, 13 Jun 2013 19:15:59 +0200

-- Alf Gaida <agaida@siduction.org> Tue, 15 May 2012 02:21:31 +0200
fll-live-initscripts (4.1.4) unstable; urgency=low

fll-live-initscripts (3.14.2) unstable; urgency=low
* s/iproute/&2/

* rebuild, no changes
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Fri, 24 May 2013 02:26:26 +0200

-- Alf Gaida <agaida@siduction.org> Tue, 15 May 2012 01:26:24 +0200
fll-live-initscripts (4.1.3) unstable; urgency=low

fll-live-initscripts (3.14.1) unstable; urgency=low
* fix mirror selection.

[ Ferdinand Thommes ]
* Non-maintainer upload.
* fixed typo in fll-desktop.init
[ Alf Gaida ]
* rebuild closes #701
* added devil to uploaders
* bump version to 3.14
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sun, 05 May 2013 04:56:55 +0200

-- Alf Gaida <agaida@siduction.org> Mon, 14 May 2012 23:00:13 +0200
fll-live-initscripts (4.1.2) unstable; urgency=low

fll-live-initscripts (3.13.26) unstable; urgency=low
* temporarily drop oscar and spline.

* final version of debian/copyright
* fixes #386
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sat, 04 May 2013 19:55:57 +0200

-- Alf Gaida <agaida@siduction.org> Tue, 03 Apr 2012 16:39:39 +0200
fll-live-initscripts (4.1.1) unstable; urgency=low

fll-live-initscripts (3.13.25) unstable; urgency=low
* don't mount vfat partitions with shortname=lower.

* reworked debian/copyrights to be compatible to dep5
* in the case i am to harsh, some of the tales and novels can imho
placed in README
* bullshit removed: a GPL-Licensed file can *never ever* be PUBLIC
DOMAIN.
* copyrigth needs a review from someone not involved.
* refs #386
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Fri, 03 May 2013 01:20:02 +0200

-- Alf Gaida <agaida@siduction.org> Sat, 24 Mar 2012 14:16:31 +0100
fll-live-initscripts (4.1.0) unstable; urgency=low

fll-live-initscripts (3.13.24) unstable; urgency=low
* fll-fstab.init: unconditionally clean up pstore when booting in efi mode.
efivars storage pressure (more than 50% full), due to stale boot- or
crashlogs, created by previous kernels breaks further changes (efibootmgr).
* fll-init.init: drop noagp|agp=no cheatcodes, those shouldn't apply anymore
and tend to break more than they might have fixed (normal blacklists remain
available).

* add a newline at the last line of debian/distro-defaults.triggers
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Thu, 18 Apr 2013 22:07:26 +0200

-- Alf Gaida <agaida@siduction.org> Thu, 22 Mar 2012 19:57:53 +0100
fll-live-initscripts (4.0.8) unstable; urgency=low

fll-live-initscripts (3.13.23) unstable; urgency=low
* make lintian a little happier and enable hardening:
- W: hardening-no-fortify-functions usr/sbin/fll_blockdev_detect
- W: hardening-no-fortify-functions usr/sbin/fll_fstab_generator
- W: hardening-no-relro usr/sbin/fll_blockdev_detect
- W: hardening-no-relro usr/sbin/fll_fstab_generator

* add source override to prevent lintian complaining about
XSBC-Original-Maintainer
* fixes #643
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sat, 12 Jan 2013 02:49:22 +0100

-- Alf Gaida <agaida@siduction.org> Thu, 22 Mar 2012 17:58:16 +0100
fll-live-initscripts (4.0.7) unstable; urgency=low

fll-live-initscripts (3.13.22) unstable; urgency=low
* bump standards version to 3.9.4, no changes necessary.
* update FSF postal address to be URLs.

* bump standards to 3.9.3
* bump compat to 9
* debhelper (>=9)
* .gitignore added
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sat, 12 Jan 2013 02:36:41 +0100

-- Alf Gaida <agaida@siduction.org> Wed, 21 Mar 2012 13:12:33 +0100
fll-live-initscripts (4.0.6) unstable; urgency=low

fll-live-initscripts (3.13.21+nmu1) unstable; urgency=low
* drop versioned breaks on initscripts.

* Non-maintainer upload.
* edited desktop.init, xdm.init, distro-defaults.trigger and distro-
defaults.postrm to work with razorqt desktop
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Mon, 06 Aug 2012 00:26:08 +0200

-- Ferdinand Thommes <devil@siduction.org> Wed, 25 Jan 2012 12:44:00 +0100
fll-live-initscripts (4.0.5) unstable; urgency=low

fll-live-initscripts (3.13.21) unstable; urgency=low
* fix typo.

[ Sebastian Görgen ]
* Non-maintainer upload.
* don't check fstype on generating fstab via fll_fstab_generator fixes #516
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Tue, 17 Jul 2012 15:07:52 +0200

[ Alf Gaida ]
* fixes #516, fixes #517
* version bump to a maintainer version
fll-live-initscripts (4.0.4) unstable; urgency=low

-- Alf Gaida <agaida@siduction.org> Thu, 29 Dec 2011 00:51:57 +0100
* support kvm modesetting.

fll-live-initscripts (3.13.20) unstable; urgency=low
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Tue, 17 Jul 2012 14:45:44 +0200

* fix a typo in an if-query
fll-live-initscripts (4.0.3) unstable; urgency=low

-- Torsten Wohlfarth <towo@siduction.org> Tue, 27 Dec 2011 19:13:45 +0100
* restore dev/console redirects and drop early test of /dev/cdrom.
* don't umount the aufs on /, just remount it ro.
* drop the duplicated VERBOSE stuff and just use a verbose var to add the -v.

fll-live-initscripts (3.13.19) unstable; urgency=low
-- Niall Walsh <niallwalsh@users.berlios.de> Mon, 07 Jul 2012 22:24:33 +0200

* check for existence of iceweasel
fll-live-initscripts (4.0.2) unstable; urgency=low

-- Torsten Wohlfarth <towo@siduction.org> Tue, 27 Dec 2011 12:38:47 +0100
[ Stefan Lippers-Hollmann ]
* drop linitian override for no longer existing fll-network init script.

fll-live-initscripts (3.13.18) unstable; urgency=low
[ Niall Walsh ]
* fll-xdm gdm3: newline after AutomaticLoginEnable=true to kill whitespace
* move 000fll and fll.net.agent into a networking folder in source package

* fix a last typo :(
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Mon, 02 Jul 2012 21:30:12 +0200

-- Torsten Wohlfarth <towo@siduction.org> Tue, 27 Dec 2011 01:54:31 +0100
fll-live-initscripts (4.0.1) unstable; urgency=low

fll-live-initscripts (3.13.17) unstable; urgency=low
* fix rtc timezone settings for initscripts >= 2.88dsf-25.
* use printf instead of multi-line echoes.

* fix some typos
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Mon, 11 Jun 2012 03:45:38 +0200

-- Torsten Wohlfarth <towo@siduction.org> Tue, 27 Dec 2011 01:09:56 +0100
fll-live-initscripts (4.0.0) unstable; urgency=low

fll-live-initscripts (3.13.16) unstable; urgency=low
[ Stefan Lippers-Hollmann ]
* drop cirrus-kvm overrides.
* add ifupdown and iproute to dependencies.

* added a loadbalancing routine for siduction and debian sources
* add a fix for installer language in iceweasel
[ Niall Walsh ]
* drop fll-network, replace with fll.net.agent for udev and if-up.d/000fll

-- Torsten Wohlfarth <towo@siduction.org> Tue, 27 Dec 2011 00:13:50 +0100
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Mon, 11 Jun 2012 00:39:18 +0200

fll-live-initscripts (3.13.15) unstable; urgency=low

* fix /etc/gpm.conf if /dev/psaux does not exist
* actually comment out eject stuff (ooops)
* comment out some more late /dev/console redirects

-- Torsten Wohlfarth <towo@siduction.org> Fri, 23 Dec 2011 16:54:40 +0100
-- Niall Walsh <niallwalsh@users.berlios.de> Mon, 26 Mar 2012 15:44:19 +0100

fll-live-initscripts (3.13.14) unstable; urgency=low

* set nodeadkeys as default for german lang
* Revert 3.13.13 change to use random /run/fll-reboot.XXXXX
* check for /fll-cdrom early when we actually might have it
* remove call to eject and update prompt text
* drop [<>] /dev/console around prompt as it does not work now

-- Torsten Wohlfarth <towo@siduction.org> Fri, 23 Dec 2011 13:44:39 +0100
-- Niall Walsh <niallwalsh@users.berlios.de> Sun, 25 Mar 2012 23:39:59 +0100

fll-live-initscripts (3.13.13) unstable; urgency=low

* add the fix for the init 3 problem with gdm3/lightdm to fll-xdm
* use random /run/fll-reboot.XXXXX to store reboot helpers on tmpfs.

-- Torsten Wohlfarth <towo@siduction.org> Tue, 20 Dec 2011 17:54:37 +0100
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Sun, 25 Mar 2012 23:09:45 +0200

fll-live-initscripts (3.13.12) unstable; urgency=low

* Non-maintainer upload.
* add a rewrite of /etc/apt/sources.list.d/debian.list
* bump standards version to 3.9.3, no changes necessary.

-- Torsten Wohlfarth <towo@siduction.org> Tue, 20 Dec 2011 16:04:44 +0100
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Thu, 23 Feb 2012 16:20:19 +0100

fll-live-initscripts (3.13.11) unstable; urgency=low

* workaround for lightdm by coruja
* make lintian a little happier:
- init.d-script-does-not-implement-optional-option
- etc/init.d/fll-adduser status
- etc/init.d/fll-desktop status
- etc/init.d/fll-fstab status
- etc/init.d/fll-init status
- etc/init.d/fll-nbdclient status
- etc/init.d/fll-reboot status
- etc/init.d/fll-shell status
- etc/init.d/fll-xdm status
- etc/init.d/fll-xorgconfig status

-- Alf Gaida <agaida@siduction.org> Wed, 14 Dec 2011 16:40:56 +0100
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Mon, 16 Jan 2012 01:19:30 +0100

fll-live-initscripts (3.13.10) unstable; urgency=low

[ siduction builders ]
* merging lost changes and hoping the best

[ Alf Gaida ]
* Merge manuell berichtigt, ready to build
* switch to compat level 9.

-- Alf Gaida <agaida@siduction.org> Sat, 10 Dec 2011 14:39:23 +0100
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Mon, 16 Jan 2012 01:13:19 +0100

fll-live-initscripts (3.13.9) unstable; urgency=low

* fixed a typo in debian/fll-locales.init
* keyboard for uk_UA should be ua not uk.

-- siduction builders <packaging@siduction.org> Sat, 26 Nov 2011 22:13:33 +0100
-- Niall Walsh <niallwalsh@users.berlios.de> Fri, 30 Dec 2011 15:27:29 +0000

fll-live-initscripts (3.13.8) unstable; urgency=low

* fixed debian/fll-locales.init
* move nbd sendsigs file to /run instead of /lib/init/rw
* uk_UA support in locales.csv
* small fixups in locales.csv (is utf8, nl_BE not default, se_SE is default)

-- siduction builders <packaging@siduction.org> Sat, 26 Nov 2011 21:03:44 +0100
-- Niall Walsh <niallwalsh@users.berlios.de> Fri, 23 Dec 2011 18:25:43 +0000

fll-live-initscripts (3.13.7) unstable; urgency=low

* forked package for siduction
* re-instate kvm specific override to force vesa for kvm.

-- siduction builders <packaging@siduction.org> Mon, 21 Nov 2011 21:23:00 +0100
-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Thu, 22 Dec 2011 22:19:47 +0100

fll-live-initscripts (3.13.6) unstable; urgency=low


+ 15
- 37
debian/control View File

@@ -1,12 +1,14 @@
Source: fll-live-initscripts
Maintainer: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Uploaders: Joaquim Boura <x-un-i@sapo.pt>,
Niall Walsh <niallwalsh@celtux.org>,
Alf Gaida <agaida@siduction.org>
Angelescu Ovidiu <convbsd@siduction.org>
Section: misc
Priority: optional
Maintainer: Alf Gaida <agaida@siduction.org>
Uploaders: Angelescu Ovidiu <convbsd@siduction.org>
Build-Depends:
debhelper (>= 9),
asciidoc,
Build-Depends: debhelper (>= 9.20120115),
dh-systemd,
asciidoc,
docbook,
gengetopt,
xsltproc,
@@ -16,14 +18,14 @@ Build-Depends:
pkg-config,
libblkid-dev,
libudev-dev,
libxml2-utils,
libxml2-utils
Standards-Version: 3.9.6
Vcs-Browser: http://git.siduction.org/?p=packages/siduction-repository/fll-live-initscripts.git
Vcs-Git: git://git.siduction.org/packages/siduction-repository/fll-live-initscripts
Vcs-Browser: http://git.siduction.org/?p=packages/siduction-repository/fll-live-initscripts.git

Package: distro-defaults
Architecture: all
Depends: ${misc:Depends},
Depends: ${misc:Depends}
Description: set various default options
This seemingly empty package has much influence on the system and update
behaviour of the fll live Linux utilities. It's configuration data is
@@ -31,23 +33,19 @@ Description: set various default options

Package: fll-live-initscripts
Architecture: all
Depends:
${misc:Depends},
Depends: ${misc:Depends},
adduser,
console-setup,
cpufrequtils,
distro-defaults,
eject,
fll-live-utils,
ifplugd,
ifupdown,
iproute2,
procps,
ceni,
keyboard-configuration,
lsb-base,
Recommends:
tzdata
systemd-sysv (>= 217-2~)
Recommends: tzdata
Description: fll live media sysv initscripts
A set of initscripts suitable for managing the SysV-Init boot sequence of the
live media generated by code from the F.U.L.L.S.T.O.R.Y project.
@@ -57,31 +55,11 @@ Description: fll live media sysv initscripts

Package: fll-live-utils
Architecture: any
Depends:
${shlibs:Depends},
Depends: ${shlibs:Depends},
${misc:Depends},
udev,
udev
Description: fll live utilities
A set of tools for use by fll-live-initscripts.
.
This is a FULLSTORY live-only package and should not be installed to an
ordinary system.

Package: fll-live-xorgconfig
Architecture: all
Depends:
${misc:Depends},
distro-defaults (= ${source:Version}),
fll-live-initscripts,
lsb-base,
perl,
libswitch-perl,
xserver-xorg-core,
Recommends:
kdm | gdm3 | lightdm (>= 1.0.2) | slim,
xserver-xorg-input-vmmouse (>> 12.6.3)
Description: fll live media xorg related tools
A set of scripts to generate a Xorg configuration.
.
This is a FULLSTORY live-only package and must not be installed to an
ordinary system.

+ 31
- 28
debian/copyright View File

@@ -1,46 +1,49 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: fll-live-initscripts
Source: http://chili.siduction.org/projects/siduction/wiki/Fll-live-initscripts
Upstream-Contact: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Source: git://github.com/fullstory/fll-live-initscripts.git

Files: *
Copyright: 2007-2014 Stefan Lippers-Hollmann <s.l-h@gmx.net>
Copyright: 2007-2008 Kel Modderman <kel@otaku42.de>
2007-2015 Stefan Lippers-Hollmann <s.l-h@gmx.net>
2008-2012 Niall Walsh <niallwalsh@users.berlios.de>
2007-2008 Kel Modderman <kel@otaku42.de>
License: GPL-2.0+
License: GPL-2.0
Comment:
Some code and concepts derived from initscripts-sidux-live.
Copyright: Klaus Knopper <knopper@knopper.net>
Jörg Schirottke <master@kanotix.com>
Stefan Lippers-Hollmann <s.l-h@gmx.net>
debian/fll-live-initscripts.fll-reboot.init was inspired by
/etc/init.d/umountfs from initscripts (2.86.ds1-38).
Copyright: 1997-2005, Miquel van Smoorenburg <miquels@cistron.nl>
2007-2008, Kel Modderman <kel@otaku42.de>
2007-2015, Stefan Lippers-Hollmann <s.l-h@gmx.net>
the members pkg-sysvinit project.
.
copy_exec() in ./debian/fll-live-initscripts.fll-reboot.init was shamelessly
adapted from initramfs-tools.
Copyright: 2005-2006, Adam Conrad
2006, Ben Collins
2005-2007, David Härdeman
2005, Jeff Bailey
2005-2007, Maximilian Attems
2005-2006, Scott James Remnant
2007-2008, Kel Modderman <kel@otaku42.de>
2007-2015 Stefan Lippers-Hollmann <s.l-h@gmx.net>


Files: debian/*
Copyright: 2012-2014 Angelescu Ovidiu <convbsd@siduction.org>
2011-2014 Alf Gaida <agaida@siduction.org>
2007-2010 Stefan Lippers-Hollmann <s.l-h@gmx.net>
2007-2008 Kel Modderman <kel@otaku42.de>
License: GPL-2.0+

Files: bin/fll_analyze_initscripts bin/fll_xserver_discover
Copyright: 2006-2007 Michiel de Boer <locsmif@kanotix.com>
License: GPL-2.0+

Files: debian/fll-live-initscripts.fll-reboot.init
Copyright: 1997-2005 Miquel van Smoorenburg <miquels@cistron.nl>
2007-2008 Kel Modderman <kel@otaku42.de>
2007-2014 Stefan Lippers-Hollmann <s.l-h@gmx.net>
License: GPL-2.0+
License: GPL-2.0

Files: debian/fll-live-initscripts.fll-reboot.init
Copyright: 2005-2006 Adam Conrad
2006 Ben Collins
2005-2007 David Härdeman
2005 Jeff Bailey
2005-2007 maximilian attems
2005-2006 Scott James Remnant
2007-2008 Kel Modderman <kel@otaku42.de>
2007-2014 Stefan Lippers-Hollmann <s.l-h@gmx.net>
License: GPL-2.0+

License: GPL-2.0+
License: GPL-2.0
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
the Free Software Foundation; version 2 of the License.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of

+ 0
- 1
debian/distro-defaults.install View File

@@ -1 +0,0 @@
fixes usr/share/distro-defaults

+ 0
- 18
debian/distro-defaults.postinst View File

@@ -35,21 +35,6 @@ case "$1" in
rm -f "/etc/insserv/overrides/${file}"
done

# gdm is no more
if [ -f /etc/insserv/overrides/gdm ]; then
purge_conffile /etc/insserv/overrides/gdm
fi

# Bug #487196 has been fixed in util-linux, remove now
# obsolete LSB overrides
if [ -f /etc/insserv/overrides/hwclock.sh ]; then
purge_conffile /etc/insserv/overrides/hwclock.sh
fi

if [ -f /etc/insserv/overrides/hwclockfirst.sh ]; then
purge_conffile /etc/insserv/overrides/hwclockfirst.sh
fi

if [ ! -f /etc/apt/sources.list ] && chrooted; then
echo 'distro-defaults: creating /etc/apt/sources.list ...' 1>&2
cat > /etc/apt/sources.list \
@@ -66,9 +51,6 @@ case "$1" in
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
EOF
fi

# fix for umountfs
cp -f /usr/share/distro-defaults/fixes/umountfs /etc/init.d
;;
triggered)
;;

+ 150
- 0
debian/fll-live-initscripts.fll-adduser.init View File

@@ -0,0 +1,150 @@
#!/bin/sh

### BEGIN INIT INFO
# Provides: fll-adduser
# Required-Start:
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: add user to live system
# Description: The purpose of fll-adduser is to add a user to the live
# system and populate their /home.
### END INIT INFO

###
# F.U.L.L.S.T.O.R.Y init script
#
# Copyright: (C) 2007 - 2008 Kel Modderman <kel@otaku42.de>
# License: GPLv2
#
# F.U.L.L.S.T.O.R.Y Project Homepage:
# https://github.com/fullstory
###

PATH=/sbin:/usr/sbin:/bin:/usr/bin
NAME="fll-adduser"

###
# source distro-defaults, no-op unless in live mode
###
FLL_DISTRO_MODE="installed"

if [ -r /etc/default/distro ]; then
. /etc/default/distro
fi

if [ "${FLL_DISTRO_MODE}" != "live" ]; then
exit 0
fi

###
# VERBOSE setting and other rcS variables
###
#. /lib/init/vars.sh

###
# source lsb functions
###
. /lib/lsb/init-functions

###
# source fll functions
###
. /lib/init/fll

###
# cheatcode handling
###
if [ -f /proc/cmdline ]; then
for param in $(cat /proc/cmdline); do
case "${param}" in
flldebug=*)
if [ "${param#flldebug=}" = "${NAME#fll-}" ] || [ "${param#flldebug=}" = "all" ]; then
fll_redirect
fi
;;
username=*)
FLL_LIVE_USER="${param#username=}"
sed -i "s/^FLL_LIVE_USER=.*/FLL_LIVE_USER=\"${FLL_LIVE_USER}\"/" \
/etc/default/distro
;;
esac
done
fi

add_live_user() {
if getent passwd "${FLL_LIVE_USER}" >/dev/null 2>&1; then
log_action_begin_msg " user '${FLL_LIVE_USER}' exists"
return 0
fi

log_action_begin_msg " adding user '${FLL_LIVE_USER}'"
adduser --disabled-password --gecos "${FLL_LIVE_USER}" "${FLL_LIVE_USER}" >/dev/null
}

hack_sudoers() {
if [ -e "/etc/sudoers.d/15_${FLL_DISTRO_NAME}" ]; then
return 0
fi

# append sudoers entry
cat >> "/etc/sudoers.d/15_${FLL_DISTRO_NAME}" \
<<EOF
# WARNING: This allows the unprivileged ${FLL_LIVE_USER} user to start commands as root
# WARNING: This is totally insecure and (almost) makes ${FLL_LIVE_USER} a second root account.
# WARNING: Never allow external access to the ${FLL_LIVE_USER} user!!!
${FLL_LIVE_USER} ALL=(ALL:ALL) NOPASSWD: ALL
EOF
chmod 0440 "/etc/sudoers.d/15_${FLL_DISTRO_NAME}"
}

set_user_profile() {
for file in '.bash_logout' '.bash_profile' '.bashrc' '.profile'; do
if [ -f /etc/skel/${file} ] && [ ! -f /root/${file} ]; then
cp /etc/skel/${file} /root/${file}
fi
done

:> /root/.hushlogin

if [ -w /etc/pam.d/login ]; then
sed -i '/^[^#].*pam_lastlog\.so/s/^/# /' /etc/pam.d/login
fi
}

hack_bashrc() {
FLL_LIVE_USER_HOME=$(getent passwd ${FLL_LIVE_USER} | cut -d\: -f 6)
grep -s -q 'alias su' ${FLL_LIVE_USER_HOME}/.bashrc && return 0

printf "\nalias su='sudo su'\nalias sux='sudo sux'\n" \
>> ${FLL_LIVE_USER_HOME}/.bashrc
}

case "${1}" in
start)
log_daemon_msg "${NAME}"

add_live_user
set_user_profile
hack_sudoers
hack_bashrc

log_end_msg 0
;;
stop)
;;
restart|force-reload)
echo "Error: argument '${1}' not supported" >&2
exit 3
;;
status)
log_success_msg "${0} is no dæmon."
exit 0
;;
*)
echo "Usage: ${NAME} {start|stop}" >&2
exit 3
;;
esac

:

+ 118
- 0
debian/fll-live-initscripts.fll-fstab.init View File

@@ -0,0 +1,118 @@
#!/bin/sh

### BEGIN INIT INFO
# Provides: fll-fstab
# Required-Start: mountdevsubfs
# Required-Stop:
# Should-Start: lvm2
# X-Start-Before: mountall
# Default-Start: S
# Default-Stop:
# Short-Description: generates /etc/fstab
# Description: The purpose of fll-fstab is to generate /etc/fstab via
# fll_fstab_generator(8).
### END INIT INFO

###
# F.U.L.L.S.T.O.R.Y init script
#
# Copyright: (C) 2007 - 2010 Kel Modderman <kel@otaku42.de>
# License: GPLv2
#
# F.U.L.L.S.T.O.R.Y Project Homepage:
# https://github.com/fullstory
###

PATH=/sbin:/usr/sbin:/bin:/usr/bin
NAME="fll-fstab"

if [ ! -x /usr/sbin/fll_fstab_generator ]; then
exit 0
fi

###
# source distro-defaults, no-op unless in live mode
###
FLL_DISTRO_MODE="installed"

if [ -r /etc/default/distro ]; then
. /etc/default/distro
fi

if [ "${FLL_DISTRO_MODE}" != "live" ]; then
exit 0
fi

###
# VERBOSE setting and other rcS variables
###
#. /lib/init/vars.sh

###
# source lsb functions
###
. /lib/lsb/init-functions

###
# source fll functions
###
. /lib/init/fll

###
# ensure this is clean variable
###
NOSWAP=""

###
# cheatcode handling
###
if [ -f /proc/cmdline ]; then
for param in $(cat /proc/cmdline); do
case "${param}" in
flldebug=*)
if [ "${param#flldebug=}" = "${NAME#fll-}" ] || [ "${param#flldebug=}" = "all" ]; then
fll_redirect
fi
;;
nofstab|fstab=no)
exit 0
;;
noswap|swap=no)
NOSWAP="--noswap"
;;
esac
done
fi

do_start() {
log_daemon_msg "${NAME}"; log_action_begin_msg " generating /etc/fstab"
/usr/sbin/fll_fstab_generator --file /etc/fstab --mkdir --nomounts ${NOSWAP}
log_end_msg "${?}"

if which column >/dev/null; then
column -t < /etc/fstab > /etc/fstab.pretty &&
mv -f /etc/fstab.pretty /etc/fstab
fi
}

case "${1}" in
start)
do_start
;;
stop)
;;
restart|force-reload)
echo "Error: argument '${1}' not supported" >&2
exit 3
;;
status)
log_success_msg "${0} is no dæmon."
exit 0
;;
*)
echo "Usage: ${NAME} {start|stop}" >&2
exit 3
;;
esac

:

+ 554
- 0
debian/fll-live-initscripts.fll-locales.init View File

@@ -0,0 +1,554 @@
#!/bin/sh

### BEGIN INIT INFO
# Provides: fll-locales
# Required-Start: mountdevsubfs
# Required-Stop:
# X-Start-Before: keyboard-setup
# X-Interactive: true
# Default-Start: S
# Default-Stop:
# Short-Description: live media locale autoconfigurator
# Description: The purpose of fll-locales is to calculate required
# strings to configure the locale settings of system
# according to given lang= string.
### END INIT INFO

###
# F.U.L.L.S.T.O.R.Y init script
#
# Copyright: (C) 2007 - 2008 Kel Modderman <kel@otaku42.de>
# (C) 2008 Michael Deelwater <michael.deelwater@googlemail.com>
# License: GPLv2
#
# F.U.L.L.S.T.O.R.Y Project Homepage:
# https://github.com/fullstory
###

PATH=/sbin:/usr/sbin:/bin:/usr/bin
NAME="fll-locales"

if [ "${1}" = "list" ]; then
sed -n 's![ \t]\+\([a-z-]\+\)|\?\([a-z]\+\)\?).*### [A-Z][A-Z] \(.\+\) kb:\(.\+\) ###!\1, \3,\4!p' "${0}"
exit 0
fi

###
# source distro-defaults, no-op unless in live mode
###
FLL_DISTRO_MODE="installed"
FLL_DISTRO_NAME="siduction"

if [ -r /etc/default/distro ]; then
. /etc/default/distro
fi

if [ "${FLL_DISTRO_MODE}" != "live" ]; then
[ -n "${FLL_LANG}" ] || exit 0
fi

###
# VERBOSE setting and other rcS variables
###
#. /lib/init/vars.sh

###
# source lsb functions
###
. /lib/lsb/init-functions

###
# source fll functions
###
. /lib/init/fll

###
# source LANG functions
###
. /usr/share/fll-live-initscripts/locales

###
# some console-setup defaults
###
CHARMAP="UTF-8"
CODESET="Uni2"
# Debian agrees that Terminus doesn't look great enough to be default
# http://bugs.debian.org/497331
FONTFACE="VGA"
# Keep the default size of 16 here to avoid clearing VT 1/2 way through
# bootup sequence
FONTSIZE="16"

###
# some keyboard-configuration defaults
###
XKBMODEL="linux"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS="lv3:ralt_switch,compose:lwin,grp:alt_shift_toggle"

###
# cheatcode handling
###
if [ -f /proc/cmdline ]; then
for param in $(cat /proc/cmdline); do
case "${param}" in
flldebug=*)
if [ "${param#flldebug=}" = "${NAME#fll-}" ] || [ "${param#flldebug=}" = "all" ]; then
fll_redirect
fi
;;
lang=*)
LANGUAGE=$(awk 'BEGIN{ print tolower("'"${param#lang=}"'") }')
;;
utc=yes)
UTC="yes"
;;
utc|gmt)
CUSTOM_TZ="Etc/UTC"
;;
tz=*)
CUSTOM_TZ="${param#tz=}"
;;
noaptlang)
NOAPTLANG="yes"
;;
image_dir=*)
FLL_IMAGE_DIR="${param#image_dir=}"
FLL_IMAGE_LOCATION="${FLL_IMAGE_DIR}/${FLL_IMAGE_FILE}"
;;
image_name=*)
FLL_IMAGE_FILE="${param#image_name=}"
FLL_IMAGE_LOCATION="${FLL_IMAGE_DIR}/${FLL_IMAGE_FILE}"
;;
xkboptions=*)
KBOPTIONS="${param#xkboptions=}"
;;
keytable=*)
KEYTABLE="${param#keytable=}"
;;
xkbmodel=*)
KBMODEL="${param#xkbmodel=}"
;;
xkbvariant=*)
KBVARIANT="${param#xkbvariant=}"
;;
esac
done
fi

###
# allow FLL_LANG environment variable to trump
###
if [ -n "${FLL_LANG}" ]; then
LANGUAGE="${FLL_LANG}"
fi

###
# lang cheatcode can optionally be made of two dash-separated parts ll-cc
# ll -> language code
# cc -> demographic code
###
LANG_CODE=${LANGUAGE%%[-_]*}
DEMO_CODE="$(echo ${LANGUAGE##*[-_]} | awk '{print toupper($1)}')"

LANGS=$(locale -a)
LANG=""

# First check if they entered a built in lang
for LOCALE in ${LANGS}; do
[ "${LOCALE}" = "${LANG_CODE}_${DEMO_CODE}.utf8" ] && LANG="${LOCALE}" && break

# match the language to find the default and possible locales
case "${LOCALE}" in
${LANG_CODE}_*)
[ -z "${LANG_POSS}" ] && LANG_POSS="${LOCALE}"
fll_locale_default ${LOCALE} && LANG_DEF="${LOCALE}"
;;
esac
done

# See if we have some knowledge on how to setup the requested locale
if [ -z "${LANG}" ]; then
for LOCALE in fll_locale_cheats; do
[ "${LOCALE}" = "${LANG_CODE}_${DEMO_CODE}.utf8" ] && \
fll_locale_lang ${LOCALE} && break
done
fi

# Ok just fallback to the default language, or whatever we know about or en_US
if [ -z "$LANG" ]; then
if [ -n "${LANG_DEF}" ]; then
LANG="${LANG_DEF}"
else
if [ -n "${LANG_POSS}" ]; then
LANG="${LANG_POSS}"
else
LANG="en_US.utf8"
fi
fi
fi
export LANG

###
# if demographic code was ommitted, extract default demo_code from LANG
###
if [ -z "${DEMO_CODE}" ]; then
LANG_CHECK="${LANG%%.*}"
DEMO_CODE="${LANG_CHECK##*_}"
fi

#set tz, mirror, xkb via fll_locale_demo
if [ "${LANG}" = "${LANG_CODE}_${DEMO_CODE}.utf8" ]; then
fll_locale_demo ${LANG}
else
# We've altered their LANG
fll_locale_cheats
for LOCALE in ${FLL_LOCALE_CHEATS}; do
# if we have their locale
if [ "${LOCALE}" = "${LANG_CODE}_${DEMO_CODE}.utf8" ]; then
DEMO="${LOCALE}"
break
fi

# if we have a locale in their country
if [ "${LOCALE#*_}" = "${DEMO_CODE}.utf8" ]; then
[ -z "${DEMO_POSS}" ] && DEMO_POSS="${LOCALE}"
fi
done

# if it's not a country we know about fallback to default 00_00
if [ -z "${DEMO}" ]; then
if [ -n "${DEMO_POSS}" ]; then
DEMO="${DEMO_POSS}"
else
DEMO="00_00.utf8"
fi
fi

fll_locale_demo ${DEMO}
fi

###
# allow CUSTOM_TZ to override above TZ definitions
###
if [ -n "${CUSTOM_TZ}" ]; then
case "${CUSTOM_TZ}" in
utc|UTC)
CUSTOM_TZ="Etc/UTC"
;;
esac
[ -f "/usr/share/zoneinfo/${CUSTOM_TZ}" ] && TZ="${CUSTOM_TZ}"
fi

###
# allow KEYTABLE to update above XKBLAYOUT settings
###
if [ -n "${KEYTABLE}" ]; then
XKBLAYOUT="${KEYTABLE}"
fi

###
# allow KBOPTIONS to update above XKBOPTIONS settings
###
if [ -n "${KBOPTIONS}" ]; then
XKBOPTIONS="${KBOPTIONS}"
fi

###
# allow KBMODEL to update above XKBMODEL settings
###
if [ -n "${KBMODEL}" ]; then
XKBMODEL="${KBMODEL}"
fi

###
# allow KBVARIANT to update above XKBVARIANT settings
###
if [ -n "${KBVARIANT}" ]; then
XKBVARIANT="${KBVARIANT}"
fi

set_timezone()
{
###
# configure timezone, fallback to UTC
###
[ -f "/usr/share/zoneinfo/${TZ}" ] || TZ="Etc/UTC"
log_daemon_msg "${NAME}"; log_action_begin_msg " configuring timezone data for '${TZ}'"
echo "${TZ}" > /etc/timezone
rm -f /etc/localtime && cp -f "/usr/share/zoneinfo/${TZ}" /etc/localtime
log_end_msg "${?}"

###
# hack rcS, make localtime default, unless tz=Etc/UTC or utc=yes
###
if [ "${TZ}" = "Etc/UTC" ] || [ "${UTC}" = "yes" ]; then
printf "0.000000 0 0.000000\n0\nUTC\n" > /etc/adjtime
else
# debian defaults to UTC=yes, which is rumored to be dual-boot unfriendly
printf "0.000000 0 0.000000\n0\nLOCAL\n" > /etc/adjtime

# update the system clock a'la /lib/udev/rules.d/85-hwclock.rules
/sbin/hwclock --rtc=/dev/rtc0 --systz
/sbin/hwclock --rtc=/dev/rtc0 --hctosys
fi
}

set_locale()
{
###
# select default locale and configure console-data via debconf
###
log_daemon_msg "${NAME}"; log_action_begin_msg " configuring locales for '${LANG}'"

echo "locales locales/default_environment_locale select ${LANG}" | \
debconf-set-selections
update-locale "LANG=${LANG}"

log_end_msg "${?}"

# mod for lxde
if [ -f /usr/bin/setlxdekblanguages ]; then
echo "lxdekb-lang-set ${LANG}"
setlxdekblanguages
fi
case ${FLL_FLAVOUR} in
cinnamon)
echo "cinnamon setgconfschemas"
setgconfschemas;
;;
gnome)
echo "gnome setgconfschemas"
setgconfschemas;
;;
lxde)
echo "lxde set languages"
;;
lxqt)
echo "lxqt set languages"
;;
mate)
;;
kde)
;;
xorg)
;;
xfce)
echo "xfce set languages"
;;
esac

}

set_console()
{
# write configuration: console-setup
cat > /etc/default/console-setup <<EOF
ACTIVE_CONSOLES="/dev/tty[1-6]"
CHARMAP="${CHARMAP}"
CODESET="${CODESET}"
FONTFACE="${FONTFACE}"
FONTSIZE="${FONTSIZE}"
EOF

# write configuration: keyboard-configuration
# only set one layout
# FIXME: investigate debconfsettings!
sed -i -e "s/^\(XKBMODEL\=\).*/\1\"${XKBMODEL}\"/" \
-e "s/^\(XKBLAYOUT\=\).*/\1\"${XKBLAYOUT%%,*}\"/" \
-e "s/^\(XKBVARIANT\=\).*/\1\"${XKBVARIANT}\"/" \
-e "s/^\(XKBOPTIONS\=\).*/\1\"${XKBOPTIONS}\"/" \
/etc/default/keyboard

setupcon --save-only
udevadm trigger --property-match=ID_INPUT_KEYBOARD=1
}

apt_install_lang() {
###
# install debs for lang from deb archive on cd
###
if [ -n "$NOAPTLANG" ]; then
return
fi

LIVEAPT="${FLL_MOUNTPOINT}.2/i18n"
if [ ! -d "${LIVEAPT}" ]; then
return
fi

APTARCH=$(dpkg --print-architecture)
# e.g. try /fll/sr0/i18n/i386/de_AT then the first de_* found
if [ -f "${LIVEAPT}/${APTARCH}/${LANG%%[.]*}" ]; then
# we have the variant requested
LANGPACKS=$(cat "${LIVEAPT}/${APTARCH}/${LANG%%[.]*}")
elif [ "${LANG%%[_]*}" != 'en' ]; then
# try fll-locales to find one
for lf in ${LIVEAPT}/${APTARCH}/${LANG%[_]*}*; do
if [ -f "${lf}" ]; then
# we have a file for the language
LANGPACKS=$(cat "${lf}")
break
fi
done
[ -z "${LANGPACKS}" ] && return
else
# it's english and we don't have the variant requested
return
fi

log_daemon_msg "${NAME}"
log_action_begin_msg " installing language packages for '${LANG}'"

# don't touch apt if it has been used
if [ "/var/lib/dpkg/status" -nt "$(fll_get_mnt)/${FLL_IMAGE_LOCATION}" ]; then
log_failure_msg " dpkg already updated"
return
fi

LIVEAPTSOURCES=$(mktemp -d -t liveapt.XXXXXX)
APTGETBASE="apt-get -o Dir::Etc=$LIVEAPTSOURCES"
echo 'deb file://'${LIVEAPT}' sid main' > ${LIVEAPTSOURCES}/sources.list
mkdir ${LIVEAPTSOURCES}/preferences.d

if ! ${APTGETBASE} update > /dev/null; then
log_failure_msg " apt-get update for i18n packages from cd failed"
apt_install_lang_clean
return
fi

APTGETBASE="${APTGETBASE} --allow-unauthenticated --assume-yes --no-remove"

# do a dry-run to calculate size of packages and that will be used
APTUSESRAW=$(LANG=C ${APTGETBASE} --print-uris install ${LANGPACKS} | \
awk '/^After\ this\ operation\,\ /{print $4}')
APTUSES=${APTUSESRAW%%[.]*MB}
APTUSES=$(echo $APTUSESRAW | sed 's|MB$||;')

# lets assume it is <MB and ok if it's not in MB
if [ "${APTUSES}" != "${APTUSESRAW}" ]; then
APTUSES=$(echo $APTUSES | sed 's|\.[0-9]*$||;')

# get a free memory figure
FREEMEM=$(LANG=C free -m | awk '/\-\/\+\ buffers/{print $4}')

# check free - used > minspace (256M)
MEMAFTER=$(( ${FREEMEM} - ${APTUSES} ))
if [ ${MEMAFTER} -lt 256 ]; then
log_warning_msg " minimum 256MB free ram needed for i18n packages"
log_warning_msg " you would only have ${MEMAFTER}MB free, not installing"
apt_install_lang_clean
return
fi

# check used/free > minratio
USESRATIO=$(( ${FREEMEM} / ${APTUSES} ))
if [ ${USESRATIO} -lt 5 ]; then
log_warning_msg " i18n packages would use (${APTUSES}MB) more then 20% of available memory (${FREEMEM}MB), not installing."
apt_install_lang_clean
return
fi
fi

# install the packages
${APTGETBASE} install ${LANGPACKS} > /dev/null

# clean up
apt_install_lang_clean
}

apt_install_lang_clean() {
echo '' > ${LIVEAPTSOURCES}/sources.list
apt-get -o Dir::Etc=$LIVEAPTSOURCES update > /dev/null
apt-get -o Dir::Etc=$LIVEAPTSOURCES clean > /dev/null
rm -rf ${LIVEAPTSOURCES}
log_end_msg "${?}"
}

localize_sources_list() {
# deploy load balancing for siduction mirrors
# atm we these usable mirrors:
# 1) ftp.spline.de
# 2) ftp.uni-stuttgart.de
# 3) packages.siduction.org
# REPOS:
# 3) extra
# 4) fixes - provided directly via packages.siduction.org

case "$(mawk 'BEGIN{print int(9 * rand())}')" in
0|1|3) # Free University Berlin/ spline (Student Project LInux NEtwork), Germany
FLL_MIRROR="http://ftp.spline.de/pub/siduction/"
;;
4|5|6) # Universtity Stuttgart
FLL_MIRROR="http://ftp.uni-stuttgart.de/siduction/"
;;
*) # siduction main mirror
FLL_MIRROR="http://packages.siduction.org/"
;;
esac

target="/etc/apt/sources.list.d/debian.list"
echo "# debian loadbalancer" > ${target}
echo "deb http://httpredir.debian.org/debian/ unstable main contrib non-free" >> ${target}
echo "#deb-src http://httpredir.debian.org/debian/ unstable main contrib non-free" >> ${target}


target="/etc/apt/sources.list.d/extra.list"
echo "deb ${FLL_MIRROR}extra unstable main" > ${target}
echo "#deb-src ${FLL_MIRROR}extra unstable main" >> ${target}
echo "" >> ${target}

target="/etc/apt/sources.list.d/fixes.list"
echo "deb ${FLL_MIRROR}fixes unstable main contrib non-free" > ${target}
echo "#deb-src ${FLL_MIRROR}fixes unstable main contrib non-free" >> ${target}
echo "" >> ${target}
}

save_locale_variables() {
for var in FLL_MIRROR CHARMAP CODESET FONTFACE FONTSIZE \
XKBMODEL XKBLAYOUT XKBVARIANT XKBOPTIONS; do
val=$(eval echo \$${var})
echo "${var}=\"${val}\""
done > "/etc/default/${NAME}"
}

case "${1}" in
start)
set_timezone
set_locale
set_console
apt_install_lang
localize_sources_list
save_locale_variables
;;
stop)
# no-op
;;
restart|reload|force-reload)
echo "Error: argument '${1}' not supported" >&2
exit 3
;;
localize)
# no output
log_daemon_msg() { :; }
log_action_begin_msg() { :; }
log_end_msg() { :; }
# localize
set_locale
set_console
apt_install_lang
localize_sources_list
save_locale_variables
;;