I'm trying to create gpio22 and gpio27 in sys/class/gpio/ and enable them, I'm using following command for the same:
echo "22" | sudo tee /sys/class/gpio/export
echo "27" | sudo tee /sys/class/gpio/export
Using the above commands I'm able to add/configure the pins, But every time I restart the system Gpio22 and Gpio27 disappear from the directory.