Files
snapd/tests/lib/ramdisk.sh
sergio-j-cazzolato 6a051a8259 Moving from sh to bash
As it was agreed with the team we are gonna use bash for the test
helpers instead of using sh in case bash is not required.
2018-05-28 10:20:56 -03:00

9 lines
142 B
Bash

#!/bin/bash
setup_ramdisk(){
if [ ! -e /dev/ram0 ]; then
mknod -m 660 /dev/ram0 b 1 0
chown root.disk /dev/ram0
fi
}