質問編集履歴
1
rc.localのファイル内容追加しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,10 +13,28 @@
|
|
13
13
|
|
14
14
|
### 該当のソースコード
|
15
15
|
|
16
|
+
#!/bin/sh -e
|
17
|
+
#
|
16
|
-
|
18
|
+
# rc.local
|
19
|
+
#
|
20
|
+
# This script is executed at the end of each multiuser runlevel.
|
21
|
+
# Make sure that the script will "exit 0" on success or any other
|
22
|
+
# value on error.
|
23
|
+
#
|
24
|
+
# In order to enable or disable this script just change the execution
|
17
|
-
|
25
|
+
# bits.
|
18
|
-
|
26
|
+
#
|
27
|
+
# By default this script does nothing.
|
19
28
|
|
29
|
+
# Print the IP address
|
30
|
+
_IP=$(hostname -I) || true
|
31
|
+
|
32
|
+
if [ "$_IP" ]; then
|
33
|
+
fi
|
34
|
+
|
35
|
+
sh /home/pi/aws-iot-device-sdk-python/samples/basicPubSub/doorShadowUpdater.sh
|
36
|
+
|
37
|
+
exit 0
|
20
38
|
### 試したこと
|
21
39
|
|
22
40
|
ウェブに載っている情報で「rc.localファイル」「systemd」の方法は試したのですがいまだに解決しない状況です。
|