Re: Errors in nano-x add_to_full3.sh script

Jody Bruchon <[email protected]> Sun, 19 Mar 2017 00:19:25 -0400
Newsgroups org.kernel.vger.linux-8086
Message-ID <[email protected]>
Sounds like the script does not start with

#!/bin/bash

as it should if it uses Bashisms like shopt.

On 2017-03-19 12:17 AM, Derek Johansen wrote:
> 1) I get the following errors when I run sudo ./add_to_full3.sh nterm:
>
> djohanse@djohanse-VirtualBox:~/elk2/elks/nano-X/src$ sudo
> ./add_to_full3.sh nterm
> Adding nano-X demos to ELKS full3 image
>
> Enter demo file in bin directory to copy to full3 image as script parameter
>
> ./add_to_full3.sh: 9: ./add_to_full3.sh: shopt: not found
> ./add_to_full3.sh: 17: [: !=: unexpected operator
> umount: full3: not mounted
> umount: /mnt/elks: not mounted
> Filesystem     1K-blocks  Used Available Use% Mounted on
> /dev/loop0          1424  1286       138  91% /mnt/elks
> -e
> Run nterm in full3 with
> qemu.sh
>
> 2)  When I run .sudo ./qemu.sh to bring up ELKS, then try to run nterm,
> about 50% of the time I get a "not enough memory" error.  The other
> times I get an xterm which is very cool.
>
> Thanks,
> Derek
> --
> To unsubscribe from this list: send the line "unsubscribe linux-8086" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html