Skip to content

Commit f60111f

Browse files
committed
fixed merge conflicts
2 parents 977a7f4 + 2155537 commit f60111f

File tree

7 files changed

+54
-56
lines changed

7 files changed

+54
-56
lines changed

FunKey/board/funkey/rootfs-overlay/usr/local/sbin/assembly_tests

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ touch ${LOCK_FILE}
1818

1919
## Register ourself as the running FunKey task for receiving USR1
2020
## signal for shutting down
21-
echo $$ > "/var/run/funkey.pid"
21+
pid record $$
2222

2323
## Binaries
2424
PROD_SCREEN_BIN="/usr/local/sbin/funkey_prod_screens"
@@ -224,7 +224,7 @@ function launch_tests_up_until_magnet {
224224

225225
## Register ourself back as the running FunKey task for receiving USR1
226226
## signal for shutting down
227-
echo $$ > "/var/run/funkey.pid"
227+
pid record $$
228228

229229
# check magnet test result
230230
if [[ "$res" == "0" ]]; then

FunKey/board/funkey/rootfs-overlay/usr/local/sbin/instant_play

Lines changed: 43 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -23,46 +23,46 @@ fi
2323

2424
case ${1} in
2525
load)
26-
if [ ${#} -ne 1 ]; then
27-
usage
28-
fi
26+
if [ ${#} -ne 1 ]; then
27+
usage
28+
fi
29+
30+
# Umount any remaining OPK, if any
31+
umount /opk >/dev/null 2>&1
2932

30-
# Umount any remaining OPK, if any
31-
umount /opk >/dev/null 2>&1
33+
# Mount last OPK, if any
34+
if [ -r "${LAST_OPK_FILE}" ]; then
35+
last_opk=$(cat "${LAST_OPK_FILE}")
36+
mount -t squashfs "${last_opk}" /opk
37+
fi
3238

33-
# Mount last OPK, if any
34-
if [ -r "${LAST_OPK_FILE}" ]; then
35-
last_opk=$(cat "${LAST_OPK_FILE}")
36-
mount -t squashfs "${last_opk}" /opk
37-
fi
39+
# Remove unnecessary files
40+
rm -f "${RESUME_PLAY_FILE}"
3841

39-
# Remove unnecessary files
42+
# Launch Previous Game if any
43+
if [ -f "${INSTANT_PLAY_FILE}" ]; then
44+
keymap resume
45+
echo -n "Found Instant Play file, restarting previous game with command: "
46+
cat "${INSTANT_PLAY_FILE}"
47+
mv "${INSTANT_PLAY_FILE}" "${RESUME_PLAY_FILE}"
48+
source "${RESUME_PLAY_FILE}"
4049
rm -f "${RESUME_PLAY_FILE}"
50+
keymap default
51+
termfix_all
52+
fi
4153

42-
# Launch Previous Game if any
43-
if [ -f "${INSTANT_PLAY_FILE}" ]; then
44-
keymap resume
45-
echo -n "Found Instant Play file, restarting previous game with command: "
46-
cat "${INSTANT_PLAY_FILE}"
47-
mv "${INSTANT_PLAY_FILE}" "${RESUME_PLAY_FILE}"
48-
source "${RESUME_PLAY_FILE}"
49-
rm -f "${RESUME_PLAY_FILE}"
50-
keymap default
51-
termfix_all
52-
fi
53-
54-
# Unmount last OPK, if any
54+
# Unmount last OPK, if any
5555
if [ -r "${LAST_OPK_FILE}" -a ! -f "${REBOOTING_FILE}" ]; then
56-
umount /opk
57-
rm "${LAST_OPK_FILE}"
56+
umount /opk
57+
rm "${LAST_OPK_FILE}"
5858
fi
59-
;;
59+
;;
6060

6161
save)
62-
if [ ${#} -lt 2 ]; then
63-
usage
64-
fi
65-
shift
62+
if [ ${#} -lt 2 ]; then
63+
usage
64+
fi
65+
shift
6666

6767
# Get curent binary real path
6868
bin=$(printf %s "$1" | sed "s/'/'\\\\''/g")
@@ -76,31 +76,30 @@ save)
7676
printf "' " >> "${INSTANT_PLAY_FILE}"
7777
shift
7878

79-
while [ "$#" != "0" ]
80-
do
79+
while [ "$#" != "0" ]
80+
do
8181
printf "'" >> "${INSTANT_PLAY_FILE}"
8282
printf %s "$1" | sed "s/'/'\\\\''/g" >> "${INSTANT_PLAY_FILE}"
8383
printf "' " >> "${INSTANT_PLAY_FILE}"
8484
shift
85-
done
85+
done
8686

87-
# Add the magic sauce to launch the process in background,
88-
# record the PID into a file, wait for the process to
89-
# terminate and erase the recorded PID
90-
cat << EOF >> "${INSTANT_PLAY_FILE}"
87+
# Add the magic sauce to launch the process in background,
88+
# record the PID into a file, wait for the process to
89+
# terminate and erase the recorded PID
90+
cat << EOF >> "${INSTANT_PLAY_FILE}"
9191
&
9292
pid record \$!
9393
wait \$!
9494
pid erase
9595
EOF
9696

97-
# Now terminate gracefully
98-
exec powerdown now
99-
;;
97+
# Now terminate gracefully
98+
exec powerdown now
99+
;;
100100

101101
*)
102-
usage
103-
;;
102+
usage
103+
;;
104104
esac
105105
exit 0
106-

FunKey/board/funkey/rootfs-overlay/usr/local/sbin/pid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ case "${1}" in
4848
erase_pid
4949
;;
5050

51-
print)
51+
print)
5252
cat "${PID_FILE}"
5353
;;
5454

FunKey/board/funkey/rootfs-overlay/usr/local/sbin/powerdown

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#set -x
55

66
SELF="$(basename ${0})"
7-
PID_FILE="/var/run/funkey.pid"
87
REBOOTING_FILE="/run/rebooting"
98

109
usage() {
@@ -18,7 +17,7 @@ schedule_powerdown() {
1817

1918
# Send USR1 signal to the running FunKey process to warn about
2019
# impending shutdown
21-
pkill -USR1 -F "${PID_FILE}" > /dev/null 2>&1
20+
pkill -USR1 "$(pid print)" > /dev/null 2>&1
2221

2322
# Delay for the given grace period seconds to catch signal USR2.
2423
# If the signal is caught, then it means the running FunKey

Recovery/board/funkey/rootfs-overlay/etc/issue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
|___| |_____|__|__||__|\__||_____|___ |
66
FUN ON A KEYCHAIN |_____|
77
-----------------------------------------------------
8-
Version 2.1.1 (Recovery)
8+
Version 2.3.0 (Recovery)
99
-----------------------------------------------------
1010

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
NAME="FunKey-OS Recovery"
2-
VERSION="2.1.1 (Vitriolic Vulture)"
2+
VERSION="2.3.0 (Zen Zebu)"
33
ID=funkey-recovery
44
ID_LIKE=buildroot
5-
PRETTY_NAME="FunKey-OS Recovery 2.1.1"
6-
VERSION_ID="2.1.1"
5+
PRETTY_NAME="FunKey-OS Recovery 2.3.0"
6+
VERSION_ID="2.3.0"
77
HOME_URL="https://www.funkey-project.com/"
88
SUPPORT_URL="https://www.funkey-project.com/"
99
BUG_REPORT_URL="https://www.funkey-project.com/"
1010
PRIVACY_POLICY_URL="https://www.funkey-project.com"
11-
VERSION_CODENAME=Vitriolic
12-
UBUNTU_CODENAME=Vitriolic
11+
VERSION_CODENAME=Zen
12+
UBUNTU_CODENAME=Zen
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Recovery 2.1.1
1+
Recovery 2.3.0

0 commit comments

Comments
 (0)