forked from nccgroup/asafw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for a serial shell + restarting lina without rebooting Linux
- Loading branch information
Cedric Halbronn
authored and
Cedric Halbronn
committed
Aug 22, 2018
1 parent
dc22b13
commit 2052939
Showing
4 changed files
with
144 additions
and
37 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
# | ||
# Restart lina userland process without reboot the whole Linux OS | ||
# | ||
# Note: | ||
# You can use "crashinfo force page-fault" to force a crash from Cisco CLI for testing purpose | ||
# | ||
|
||
|
||
# lina "syslogd" internal process needs this file to NOT exist when initializing | ||
echo "[lina_start] Removing /dev/log..." | ||
rm /dev/log | ||
|
||
# we don't use lina_monitor to keep it simple and also so it does not reboot | ||
# when lina exits | ||
echo "[lina_start] Starting lina..." | ||
echo "[lina_start] Expect a Cisco CLI sooner than later..." | ||
/asa/bin/lina -t -l | ||
echo "[lina_start] lina exited, probably crashed?" |
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
Oops, something went wrong.