# Update not working

**URL:** <https://hub.mender.io/t/update-not-working/2715>\
**Category:** General Discussions\
**Created:** [October 22, 2020, 1:41pm UTC](https://hub.mender.io/t/update-not-working/2715 "2020-10-22T13:41:14Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![martin](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@martin](https://hub.mender.io/u/martin)\
**Post date:** [October 26, 2020, 7:21pm UTC](https://hub.mender.io/t/update-not-working/2715/20 "2020-10-26T19:21:25Z")

</div>

I couldn’t get fw\_setenv to work using stdin

```
echo test1=test1 > /var/run/test
root@octave-imx8mnevk:~# fw_setenv -s - < /var/run/test 
root@octave-imx8mnevk:~# fw_printenv | grep test1
root@octave-imx8mnevk:~# 
root@octave-imx8mnevk:~# fw_setenv -s /var/run/test
root@octave-imx8mnevk:~# fw_printenv | grep test1
test1=test1

```

I looked through the libubootenv code and can’t see how it processes - for stdin, in the u-boot version you can see

```
	if (strcmp(fname, "-") == 0)
		fp = stdin;

```

But I don’t see anything for libubootenv, if you run

`fw_setenv -s -`

it just returns, in fact if you specify a non existent file it returns

```
root@octave-imx8mnevk:~# fw_setenv -s /doesnt/exist
root@octave-imx8mnevk:~# echo $?
0

```

I’m using v0.2 of libubootenv, do I need a different version?

---

_[View the full topic](https://hub.mender.io/t/update-not-working/2715)._
