-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve install/uninstall thoroughness
Support debug builds of the driver to be installable through dkms.
- Loading branch information
Showing
10 changed files
with
205 additions
and
105 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
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
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
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
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,19 +1,19 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
|
||
PATH='/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin' | ||
|
||
LOG_DIR=/var/opt/maccel/logs | ||
mkdir -p $LOG_DIR | ||
|
||
chown -v :maccel /sys/module/maccel/parameters/* &> $LOG_DIR/chown; | ||
chown -v :maccel /dev/maccel &> $LOG_DIR/chown; | ||
chmod g+r /dev/maccel &> $LOG_DIR/chmod; | ||
chown -v :maccel /sys/module/maccel/parameters/* &>$LOG_DIR/chown | ||
chown -v :maccel /dev/maccel &>$LOG_DIR/chown | ||
chmod g+r /dev/maccel &>$LOG_DIR/chmod | ||
|
||
# For persisting parameters values across reboots | ||
RESET_SCRIPTS_DIR=/var/opt/maccel/resets | ||
mkdir -p $RESET_SCRIPTS_DIR | ||
chown -v :maccel $RESET_SCRIPTS_DIR | ||
chmod -v g+w "$RESET_SCRIPTS_DIR" | ||
ls $RESET_SCRIPTS_DIR/set_last_*_value.sh | xargs cat | sh &> $LOG_DIR/reset-scripts | ||
ls $RESET_SCRIPTS_DIR/* | xargs chown -v :maccel &> $LOG_DIR/reset-scripts | ||
ls $RESET_SCRIPTS_DIR/* | xargs chmod -v g+w &> $LOG_DIR/reset-scripts | ||
chown -v :maccel $RESET_SCRIPTS_DIR | ||
chmod -v g+w "$RESET_SCRIPTS_DIR" | ||
ls $RESET_SCRIPTS_DIR/set_last_*_value.sh | xargs cat | sh &>$LOG_DIR/reset-scripts | ||
ls $RESET_SCRIPTS_DIR/* | xargs chown -v :maccel &>$LOG_DIR/reset-scripts | ||
ls $RESET_SCRIPTS_DIR/* | xargs chmod -v g+w &>$LOG_DIR/reset-scripts |
Oops, something went wrong.