mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-02-09 08:28:50 +01:00
MycroftOS: Buildroot: Check for /.mycroft and if not exist create it
- This is a work around for #9 untill I figure out what exactly is causing it.
This commit is contained in:
parent
0b8fd4e503
commit
820e7d502f
@ -18,6 +18,16 @@ start() {
|
|||||||
mkdir /var/log/mycroft/
|
mkdir /var/log/mycroft/
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check if /.mycroft exist already and if not
|
||||||
|
# create a symbolic link to /root/.mycroft
|
||||||
|
if [[ ! -w /.mycroft/ ]] ; then
|
||||||
|
# Creating .mycroft symlink
|
||||||
|
printf "Creating /.mycroft/ symlink"
|
||||||
|
if [[ ! -d /.mycroft/ ]] ; then
|
||||||
|
ln -s /root/.mycroft /.mycroft
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user