OpenWrt Forum Archive

Topic: CC 15.05.1 - where to select read utility in make menuconfig

The content of this topic has been archived on 4 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I want to select read utility but not able to find in make menuconfig.

Syntax
      read [-ers] [-a aname] [-p prompt] [-t timeout]  [-n nchars] [-d delim] [name...]

below is read man page to be more clear:

http://ss64.com/bash/read.html

where and how I can add it in make menuconfig ?

read is already part of ash.

Just try the example given on http://ss64.com/bash/read.html to test (replace bash by ash).

#!/bin/ash
echo -n "Enter the current year and press [ENTER]: "
read var_year
echo "The year is: $var_year"

echo -n "Enter your name and press [ENTER]: "
read var_name
echo "Your name is: $var_name"

(Last edited by maartenjd on 26 Sep 2016, 12:52)

The discussion might have continued from here.