-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improve install/remove/setup logs and comments * Fix directory removal in remove hook * Allow firewall setup from remove hook
- Loading branch information
Showing
4 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
#!/bin/bash -e | ||
|
||
TAG="$SNAP_NAME.remove" | ||
|
||
logger --tag=$TAG "Start" | ||
|
||
TAG="$SNAP_NAME.hook.remove" | ||
|
||
############################################################################### | ||
logger --tag=$TAG "Remove the firewall config" | ||
logger --tag=$TAG "Removing the firewall config" | ||
$SNAP/bin/script/otbr-firewall stop | ||
|
||
logger --tag=$TAG "Removing the socket directory" | ||
# This directory gets created whenever OTBR setup runs | ||
rm -fr /run/snap.$SNAP_NAME | ||
|
||
|
||
rm -f /run/snap.$SNAP_NAME | ||
|
||
logger --tag=$TAG "End" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters