質問編集履歴

1

rc.localのファイル内容追加しました

2018/08/28 03:52

投稿

taguchit9
taguchit9

スコア6

test CHANGED
File without changes
test CHANGED
@@ -28,13 +28,49 @@
28
28
 
29
29
 
30
30
 
31
- ```ここに言語名を入力
31
+ #!/bin/sh -e
32
32
 
33
- ソースコード
33
+ #
34
34
 
35
+ # rc.local
36
+
37
+ #
38
+
39
+ # This script is executed at the end of each multiuser runlevel.
40
+
41
+ # Make sure that the script will "exit 0" on success or any other
42
+
43
+ # value on error.
44
+
45
+ #
46
+
47
+ # In order to enable or disable this script just change the execution
48
+
35
- ```
49
+ # bits.
50
+
51
+ #
52
+
53
+ # By default this script does nothing.
36
54
 
37
55
 
56
+
57
+ # Print the IP address
58
+
59
+ _IP=$(hostname -I) || true
60
+
61
+
62
+
63
+ if [ "$_IP" ]; then
64
+
65
+ fi
66
+
67
+
68
+
69
+ sh /home/pi/aws-iot-device-sdk-python/samples/basicPubSub/doorShadowUpdater.sh
70
+
71
+
72
+
73
+ exit 0
38
74
 
39
75
  ### 試したこと
40
76