o_lib, as a code example, but they have not managed
to prioritize it:
https://github.com/pcengines/apu_gpio_lib/pull/4
/ Raimo Niskanen
>
> Any chance of taking it in?
>
> Patch below:
>
> > It is based on Matt Dainty's diff posted to this list
> > in November
urn d - 1.0;
>
> It will only work with IEEE 754 compliant doubles, though.
A very clear way to generate an equidistributed floating point number in
the range [0.0, 1.0) given a number n in the range [0, 2^48-1] is simply:
return n * 0x1.0p-48
Requiring only C99 and .
>
> --
> Alex
--
/ Raimo Niskanen, Erlang/OTP, Ericsson AB
eval $(stat -s ${SETSDIR})
[[ $st_uid -eq 0 ]] ||
@@ -127,8 +132,6 @@
ug_err "${SETSDIR} needs to be owned by root:wheel"
[[ $st_mode -eq 040755 ]] ||
ug_err "${SETSDIR} is not a directory with permissions 0755"
-else
- mkdir -p ${SETSDIR}
fi
cd ${SETSDIR}
@@ -185,7 +188,7 @@
cat <<__EOT >/auto_upgrade.conf
Location of sets = disk
-Pathname to the sets = /home/_sysupgrade/
+Pathname to the sets = ${SETSDIR}/
Set name(s) = done
Directory does not contain SHA256.sig. Continue without verification = yes
__EOT
@@ -193,7 +196,7 @@
if ! ${KEEP}; then
CLEAN=$(echo SHA256 ${SETS} | sed -e 's/ /,/g')
cat <<__EOT > /etc/rc.firsttime
-rm -f /home/_sysupgrade/{${CLEAN}}
+rm -f ${SETSDIR}/{${CLEAN}}
__EOT
fi
--
/ Raimo Niskanen, Erlang/OTP, Ericsson AB
On Tue, Nov 19, 2019 at 09:00:33AM +, Stuart Henderson wrote:
> On 2019/11/18 14:45, Raimo Niskanen wrote:
> > On Mon, Nov 18, 2019 at 01:23:27PM +0100, Renaud Allard wrote:
> > >
> > >
> > > On 11/18/19 10:08 AM, Raimo Niskanen wrote:
> >
On Tue, Nov 19, 2019 at 09:00:33AM +, Stuart Henderson wrote:
> On 2019/11/18 14:45, Raimo Niskanen wrote:
> > On Mon, Nov 18, 2019 at 01:23:27PM +0100, Renaud Allard wrote:
> > >
> > >
> > > On 11/18/19 10:08 AM, Raimo Niskanen wrote:
> >
On Mon, Nov 18, 2019 at 01:23:27PM +0100, Renaud Allard wrote:
>
>
> On 11/18/19 10:08 AM, Raimo Niskanen wrote:
>
> > A configuration parameter could be accomplished through an optional symlink
> > /etc/_sysupgrade that the sysadmin can create to point at the insta
> +while getopts d:fknrs arg; do
> case ${arg} in
> + d) SETSDIR=${OPTARG}/_sysupgrade
> + KEEP=true
> + ;;
> f) FORCE=true;;
> k) KEEP=true;;
> n) REBOOT=false;;
> @@ -195,7 +198,7 @@ ${KEEP} &am