<commit_before>LICENSE =	"unknown"
MAINTAINER=	"<NAME> <<EMAIL>"
PR 	= "r4"

DEPENDS =	"base-passwd osso-af-startup"
RDEPENDS =	"base-passwd osso-af-startup"

SRC_URI =	"http://stage.maemo.org:80/pool/maemo/ossw/source/o/${PN}/${PN}_${PV}.tar.gz"


inherit autotools update-rc.d

FILES_${PN} = "${sysconfdir}/osso-af-init ${sysconfdir}/init.d/"

INITSCRIPT_NAME = "x-server.sh"
INITSCRIPT_PARAMS = "defaults 21"


do_install () {
	install -d ${D}${sysconfdir}/osso-af-init
	install -m 755 ${S}/x-server.defs ${D}/${sysconfdir}/osso-af-init/x-server.defs

	install -d ${D}${sysconfdir}/init.d
	install -m 755 ${S}/x-server.sh ${D}/${sysconfdir}/init.d/x-server.sh
}

pkg_postinst () {
#!/bin/sh

# can't do adduser stuff offline
if [ "x$D" != "x" ]; then
  exit 1
fi

MAEMOUSER=user
MAEMOHOME=/home/user

mkdir -p $MAEMOHOME/MyDocs || true
chgrp "$MAEMOUSER" "$MAEMOHOME" 2>/dev/null || addgroup "$MAEMOUSER"
adduser --system --home "$MAEMOHOME" --no-create-home --disabled-password --ingroup "$MAEMOUSER" "$MAEMOUSER" || chown -R "$MAEMOUSER"."$MAEMOUSER" "$MAEMOHOME" 2>/dev/null
}<commit_msg>Update postinst task to create default user properly and link  to stuff located in initrd.<commit_after>LICENSE    = "unknown"
MAINTAINER = "<NAME> <<EMAIL>"
PR         = "r5"

DEPENDS =	"base-passwd osso-af-startup"
RDEPENDS =	"base-passwd osso-af-startup"

SRC_URI =	"http://stage.maemo.org:80/pool/maemo/ossw/source/o/${PN}/${PN}_${PV}.tar.gz"


inherit autotools update-rc.d

FILES_${PN} = "${sysconfdir}/osso-af-init ${sysconfdir}/init.d/"

INITSCRIPT_NAME = "x-server.sh"
INITSCRIPT_PARAMS = "defaults 21"


do_install () {
	install -d ${D}${sysconfdir}/osso-af-init
	install -m 755 ${S}/x-server.defs ${D}/${sysconfdir}/osso-af-init/x-server.defs

	install -d ${D}${sysconfdir}/init.d
	install -m 755 ${S}/x-server.sh ${D}/${sysconfdir}/init.d/x-server.sh
}

pkg_postinst () {
#!/bin/sh

# can't do adduser stuff offline
if [ "x$D" != "x" ]; then
  exit 1
fi

MAEMOUSER=user
MAEMOHOME=/home/user

addgroup "$MAEMOUSER"
mkdir -p $MAEMOHOME/MyDocs || true
adduser --system --home "$MAEMOHOME" --no-create-home --disabled-password --ingroup "$MAEMOUSER" "$MAEMOUSER"
chown -R "$MAEMOUSER"."$MAEMOUSER" "$MAEMOHOME" 2>/dev/null
chgrp "$MAEMOUSER" "$MAEMOHOME" 2>/dev/null
# set up some links to firmware and modules in initrd

mkdir -p /lib/firmware
ln -sf /mnt/initfs/lib/firmware/* /lib/firmware/
rm -rf /lib/modules
ln -s /mnt/initfs/lib/modules /lib/modules
}
{'fraction_non_alphanumeric': 0.19308943089430894, 'fraction_numerical': 0.011382113821138212, 'mean_word_length': 4.0847107438016526, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5990596', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1034, 'n_words': 204}