aaden-cli 1.1.184 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/.gitattributes +2 -2
  2. package/.github/workflows/submit-message.yml +49 -49
  3. package/AadenDeploy/Utils/LoadingUtils.sh +11 -11
  4. package/AadenDeploy/Utils/MyVersion.php +63 -63
  5. package/AadenDeploy/Utils/configureHttps.sh +5 -5
  6. package/AadenDeploy/Utils/convert.sql +18 -18
  7. package/{dist/patch/202204061112ResetCronTab18.sh → AadenDeploy/Utils/fixCronJob.sh} +25 -19
  8. package/AadenDeploy/Utils/startsUp.sh +6 -6
  9. package/AadenDeploy/Utils/tseEnable.sh +4 -4
  10. package/AadenDeploy/Utils/tseReady.sh +33 -33
  11. package/AadenDeploy/Utils/updateDataBaseCharSet.sh +5 -5
  12. package/AadenDeploy/Utils/usbPrinterSetup.sh +11 -11
  13. package/AadenDeploy/Utils/wlansetup.sh +12 -12
  14. package/AadenDeploy/aadensetup.sh +144 -144
  15. package/AadenDeploy/files/getFile.sh +27 -27
  16. package/AadenDeploy/lightUpdate.sh +11 -11
  17. package/AadenDeploy/mountTSE.sh +16 -16
  18. package/AadenDeploy/ngrok/ngrok +0 -0
  19. package/AadenDeploy/purge.sql +9 -9
  20. package/AadenDeploy/readme.md +179 -179
  21. package/AadenDeploy/scureSql.sh +91 -91
  22. package/AadenDeploy/update.sh +22 -22
  23. package/AadenDeploy/upgrade.sh +11 -11
  24. package/LICENSE +21 -21
  25. package/README.md +37 -37
  26. package/aws.js +42 -42
  27. package/dist/index.js +286 -737
  28. package/dist/patch/202010030826fixAuthority.sh +30 -30
  29. package/dist/patch/202010291116addUsrLocalBinToRootPath.sh +11 -11
  30. package/dist/patch/202104081433aptUpgrade.sh +2 -2
  31. package/dist/patch/202105052136useAxelToDownload.sh +2 -2
  32. package/dist/patch/202105052148createWorkDir.sh +5 -5
  33. package/dist/patch/202107031201addVersionPHP.sh +8 -8
  34. package/dist/patch/202107081404snapStopRefresh.sh +3 -3
  35. package/dist/patch/202107121635AddPHPExtension.sh +6 -6
  36. package/dist/patch/202107151032SnapStopRefresh2.sh +3 -3
  37. package/dist/patch/202107211049resetAutoUpgradeFixAuthProblem10.sh +17 -16
  38. package/dist/patch/202204061112ResetCronTab19.sh +10 -0
  39. package/generateFullSql.js +21 -21
  40. package/index.js +11 -0
  41. package/modules/cli-utils.js +42 -42
  42. package/package.json +41 -41
  43. package/patch/202010030826fixAuthority.sh +30 -30
  44. package/patch/202010291116addUsrLocalBinToRootPath.sh +11 -11
  45. package/patch/202104081433aptUpgrade.sh +2 -2
  46. package/patch/202105052136useAxelToDownload.sh +2 -2
  47. package/patch/202105052148createWorkDir.sh +5 -5
  48. package/patch/202107031201addVersionPHP.sh +8 -8
  49. package/patch/202107081404snapStopRefresh.sh +3 -3
  50. package/patch/202107121635AddPHPExtension.sh +6 -6
  51. package/patch/202107151032SnapStopRefresh2.sh +3 -3
  52. package/patch/202107211049resetAutoUpgradeFixAuthProblem10.sh +17 -16
  53. package/patch/{202204061112ResetCronTab18.sh → 202204061112ResetCronTab19.sh} +27 -19
  54. package/sql/1.sql +1378 -1378
  55. package/sql/clean.sql +8 -8
  56. package/test.js +6 -6
  57. package/utils/checkInSet.js +23 -23
  58. package/utils/renameFile.js +19 -19
  59. package/AadenDeploy/Aaden/351/241/271/347/233/256/347/224/250/346/210/267/346/263/250/345/206/214/350/241/250.docx +0 -0
package/.gitattributes CHANGED
@@ -1,2 +1,2 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto eol=lf
@@ -1,49 +1,49 @@
1
- # This is a basic workflow to help you get started with Actions
2
-
3
- name: AutoSendMessage
4
-
5
- # Controls when the action will run.
6
- on:
7
- # Triggers the workflow on push or pull request events but only for the master branch
8
- push:
9
- branches: [ stable ]
10
- # Allows you to run this workflow manually from the Actions tab
11
- workflow_dispatch:
12
-
13
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
14
- jobs:
15
- # This workflow contains a single job called "build"
16
- auto-merge-log:
17
- # The type of runner that the job will run on
18
- runs-on: ubuntu-latest
19
- # Steps represent a sequence of tasks that will be executed as part of the job
20
- steps:
21
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22
- - uses: actions/checkout@v2
23
- - uses: actions/setup-node@v2
24
- with:
25
- node-version: '14'
26
-
27
- - name: checkout/changeLog
28
- uses: actions/checkout@v2
29
- with:
30
- repository: innerken-gmbh/aaden-vue-change-log
31
- path: changeLog
32
- token: ${{ secrets.PT }}
33
-
34
- # Runs a set of commands using the runners shell
35
- - name: send message to log
36
- run: |
37
- PROJECT_NAME=$(basename -s .git $(git config --get remote.origin.url))
38
- LOG=$(git log -1 --pretty=format:"%h::$PROJECT_NAME::%s")
39
- echo $LOG
40
- cd changeLog
41
- echo $LOG >>CHANGELOG.md
42
- node scripts/save-change-log.mjs $LOG
43
- git config user.name Haodong Ju
44
- git config user.email juhaodong@gmail.com
45
- git add .
46
- git commit -m "[GITHUB CI] Update changelog"
47
- git push
48
- shell: bash
49
-
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+ name: AutoSendMessage
4
+
5
+ # Controls when the action will run.
6
+ on:
7
+ # Triggers the workflow on push or pull request events but only for the master branch
8
+ push:
9
+ branches: [ stable ]
10
+ # Allows you to run this workflow manually from the Actions tab
11
+ workflow_dispatch:
12
+
13
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
14
+ jobs:
15
+ # This workflow contains a single job called "build"
16
+ auto-merge-log:
17
+ # The type of runner that the job will run on
18
+ runs-on: ubuntu-latest
19
+ # Steps represent a sequence of tasks that will be executed as part of the job
20
+ steps:
21
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22
+ - uses: actions/checkout@v2
23
+ - uses: actions/setup-node@v2
24
+ with:
25
+ node-version: '14'
26
+
27
+ - name: checkout/changeLog
28
+ uses: actions/checkout@v2
29
+ with:
30
+ repository: innerken-gmbh/aaden-vue-change-log
31
+ path: changeLog
32
+ token: ${{ secrets.PT }}
33
+
34
+ # Runs a set of commands using the runners shell
35
+ - name: send message to log
36
+ run: |
37
+ PROJECT_NAME=$(basename -s .git $(git config --get remote.origin.url))
38
+ LOG=$(git log -1 --pretty=format:"%h::$PROJECT_NAME::%s")
39
+ echo $LOG
40
+ cd changeLog
41
+ echo $LOG >>CHANGELOG.md
42
+ node scripts/save-change-log.mjs $LOG
43
+ git config user.name Haodong Ju
44
+ git config user.email juhaodong@gmail.com
45
+ git add .
46
+ git commit -m "[GITHUB CI] Update changelog"
47
+ git push
48
+ shell: bash
49
+
@@ -1,11 +1,11 @@
1
- i=0
2
- arr=('|' '/' '-' '\\')
3
- index=0
4
- while [ $i -le 100 ]
5
- do
6
- index=`echo $i%4`
7
- printf "[%c]\r" "${arr[$index]}"
8
- ((i++))
9
- sleep 0.1
10
- done
11
- echo
1
+ i=0
2
+ arr=('|' '/' '-' '\\')
3
+ index=0
4
+ while [ $i -le 100 ]
5
+ do
6
+ index=`echo $i%4`
7
+ printf "[%c]\r" "${arr[$index]}"
8
+ ((i++))
9
+ sleep 0.1
10
+ done
11
+ echo
@@ -1,63 +1,63 @@
1
- <?php
2
- cors();
3
- header("Access-Control-Allow-Origin: *");
4
- header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
5
- error_reporting(E_ALL);
6
- ini_set('display_errors', 'On');
7
-
8
- function cors()
9
- {
10
- // Allow from any origin
11
- if (isset($_SERVER['HTTP_ORIGIN'])) {
12
- // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one
13
- // you want to allow, and if so:
14
- header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
15
- header('Access-Control-Allow-Credentials: true');
16
- header('Access-Control-Max-Age: 86400'); // cache for 1 day
17
- }
18
- // Access-Control headers are received during OPTIONS requests
19
- if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
20
- if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))
21
- header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
22
- if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
23
- header("Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}");
24
- }
25
- }
26
-
27
- switch ($_GET['op']) {
28
-
29
- case 'update':
30
- update();
31
- break;
32
- default:
33
- case 'version':
34
- echo file_get_contents("../package.json");
35
- break;
36
- }
37
-
38
- /**
39
- * @return string
40
- */
41
- function update()
42
- {
43
- $connection = ssh2_connect('localhost', 22);
44
- ssh2_auth_password($connection, 'aaden', 'Innerken322.');
45
- $stream = ssh2_exec($connection, 'aaden-cli update');
46
-
47
- $errorStream = ssh2_fetch_stream($stream, SSH2_STREAM_STDERR);
48
-
49
- // Enable blocking for both streams
50
- stream_set_blocking($errorStream, true);
51
- stream_set_blocking($stream, true);
52
-
53
- // Whichever of the two below commands is listed first will receive its appropriate output. The second command receives nothing
54
- echo "Output: " . "<pre>" . stream_get_contents($stream) . "</pre>";
55
- echo "Error: " . stream_get_contents($errorStream);
56
-
57
- // Close the streams
58
- fclose($errorStream);
59
- fclose($stream);
60
-
61
-
62
- }
63
-
1
+ <?php
2
+ cors();
3
+ header("Access-Control-Allow-Origin: *");
4
+ header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
5
+ error_reporting(E_ALL);
6
+ ini_set('display_errors', 'On');
7
+
8
+ function cors()
9
+ {
10
+ // Allow from any origin
11
+ if (isset($_SERVER['HTTP_ORIGIN'])) {
12
+ // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one
13
+ // you want to allow, and if so:
14
+ header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
15
+ header('Access-Control-Allow-Credentials: true');
16
+ header('Access-Control-Max-Age: 86400'); // cache for 1 day
17
+ }
18
+ // Access-Control headers are received during OPTIONS requests
19
+ if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
20
+ if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))
21
+ header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
22
+ if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
23
+ header("Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}");
24
+ }
25
+ }
26
+
27
+ switch ($_GET['op']) {
28
+
29
+ case 'update':
30
+ update();
31
+ break;
32
+ default:
33
+ case 'version':
34
+ echo file_get_contents("../package.json");
35
+ break;
36
+ }
37
+
38
+ /**
39
+ * @return string
40
+ */
41
+ function update()
42
+ {
43
+ $connection = ssh2_connect('localhost', 22);
44
+ ssh2_auth_password($connection, 'aaden', 'Innerken322.');
45
+ $stream = ssh2_exec($connection, 'aaden-cli update');
46
+
47
+ $errorStream = ssh2_fetch_stream($stream, SSH2_STREAM_STDERR);
48
+
49
+ // Enable blocking for both streams
50
+ stream_set_blocking($errorStream, true);
51
+ stream_set_blocking($stream, true);
52
+
53
+ // Whichever of the two below commands is listed first will receive its appropriate output. The second command receives nothing
54
+ echo "Output: " . "<pre>" . stream_get_contents($stream) . "</pre>";
55
+ echo "Error: " . stream_get_contents($errorStream);
56
+
57
+ // Close the streams
58
+ fclose($errorStream);
59
+ fclose($stream);
60
+
61
+
62
+ }
63
+
@@ -1,5 +1,5 @@
1
- sudo openssl req -x509 -nodes -days 9999 -newkey rsa:2048 -keyout /etc/ssl/private/my.key -out /etc/ssl/certs/my.crt
2
- sudo ufw allow 443
3
- sudo a2ensite default-ssl.conf
4
- sudo a2enmod ssl
5
- sudo systemctl restart apache2
1
+ sudo openssl req -x509 -nodes -days 9999 -newkey rsa:2048 -keyout /etc/ssl/private/my.key -out /etc/ssl/certs/my.crt
2
+ sudo ufw allow 443
3
+ sudo a2ensite default-ssl.conf
4
+ sudo a2enmod ssl
5
+ sudo systemctl restart apache2
@@ -1,18 +1,18 @@
1
- USE information_schema;
2
- SELECT CONCAT("ALTER DATABASE `", table_schema, "` CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;") AS _sql
3
- FROM `TABLES`
4
- WHERE table_schema LIKE "aaden"
5
- AND TABLE_TYPE = 'BASE TABLE'
6
- GROUP BY table_schema
7
- UNION
8
- SELECT CONCAT("ALTER TABLE `", table_schema, "`.`", table_name,
9
- "` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;") AS _sql
10
- FROM `TABLES`
11
- WHERE table_schema LIKE "aaden"
12
- AND TABLE_TYPE = 'BASE TABLE'
13
- GROUP BY table_schema, table_name
14
- UNION
15
- SELECT CONCAT("ALTER TABLE `", `COLUMNS`.table_schema, "`.`", `COLUMNS`.table_name, "` CHANGE `", column_name, "` `",
16
- column_name, "` ", data_type, "(", character_maximum_length,
17
- ") CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci", IF(is_nullable = "YES", " NULL", " NOT NULL"),
18
- ";") AS _sql
1
+ USE information_schema;
2
+ SELECT CONCAT("ALTER DATABASE `", table_schema, "` CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;") AS _sql
3
+ FROM `TABLES`
4
+ WHERE table_schema LIKE "aaden"
5
+ AND TABLE_TYPE = 'BASE TABLE'
6
+ GROUP BY table_schema
7
+ UNION
8
+ SELECT CONCAT("ALTER TABLE `", table_schema, "`.`", table_name,
9
+ "` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;") AS _sql
10
+ FROM `TABLES`
11
+ WHERE table_schema LIKE "aaden"
12
+ AND TABLE_TYPE = 'BASE TABLE'
13
+ GROUP BY table_schema, table_name
14
+ UNION
15
+ SELECT CONCAT("ALTER TABLE `", `COLUMNS`.table_schema, "`.`", `COLUMNS`.table_name, "` CHANGE `", column_name, "` `",
16
+ column_name, "` ", data_type, "(", character_maximum_length,
17
+ ") CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci", IF(is_nullable = "YES", " NULL", " NOT NULL"),
18
+ ";") AS _sql
@@ -1,19 +1,25 @@
1
- #!/bin/bash
2
- echo 'Start to Config cronjob.'
3
- sudo su
4
- cd /etc/ || exit
5
- touch conf
6
- sudo chmod 777 conf
7
- echo "0 */12 * * * wget -O /dev/null http://localhost/PHP/CloudStuff/ReportAllTerminalData.php" >>conf
8
- echo "* * * * * wget -O /dev/null http://localhost/PHP/CloudStuff/FetchOrdersForAllTerminal.php" >>conf
9
- echo "* * * * * wget -O /dev/null http://localhost/PHP/AccessLog.php?op=reportStatus" >>conf
10
- echo "* * * * * /var/www/html/crontab.sh > /dev/null" >>conf
11
- echo "59 4 1 * * wget -O /dev/null http://localhost/PHP/Datev.php?op=autoSendDatevCsv > /dev/null" >>conf
12
- echo "Innerken322." | sudo su - aaden -c 'crontab -r'
13
- echo "Innerken322." | sudo su - aaden -c 'crontab /etc/conf'
14
-
15
- echo "Innerken322." | sudo -S rm -f conf
16
- echo "END CONFIG"
17
- su aaden
18
- crontab -l -u aaden
19
-
1
+ #!/bin/bash
2
+ echo 'Start to Config cronjob.'
3
+ echo "Innerken322." | sudo -S su
4
+ touch conf
5
+ echo "Innerken322." | sudo -S chmod 777 conf
6
+ echo "0 */12 * * * wget -O /dev/null http://localhost/PHP/CloudStuff/ReportAllTerminalData.php" >>conf
7
+ echo "* * * * * wget -O /dev/null http://localhost/PHP/CloudStuff/FetchOrdersForAllTerminal.php" >>conf
8
+ echo "* * * * * wget -O /dev/null http://localhost/PHP/AccessLog.php?op=reportStatus" >>conf
9
+ echo "* * * * * /var/www/html/crontab.sh > /dev/null" >>conf
10
+ echo "59 4 1 * * wget -O /dev/null http://localhost/PHP/Datev.php?op=autoSendDatevCsv > /dev/null" >>conf
11
+ sudo crontab -u aaden -r
12
+ sudo crontab -u aaden conf
13
+ echo "Innerken322." | sudo -S rm -f conf
14
+ echo "Innerken322." | sudo -S su aaden
15
+ crontab -l -u aaden
16
+ echo "END CONFIG"
17
+ echo "Innerken322." | sudo -S rm -rf /etc/cron.d/aaden-cli-upgrade
18
+ echo "Innerken322." | sudo -S touch conf
19
+ echo "Innerken322." | sudo -S chmod 777 conf
20
+ echo "*/5 * * * * /usr/local/bin/aaden-cli auto-upgrade" >>conf
21
+ echo "Innerken322." | sudo -S crontab -u root -r
22
+ echo "Innerken322." | sudo -S crontab -u root conf
23
+ echo "Innerken322." | sudo -S rm -f conf
24
+ echo "Innerken322." | sudo -S crontab -l
25
+ echo "END CONFIG"
@@ -1,6 +1,6 @@
1
- #!/bin/bash
2
-
3
-
4
- # 检查Aaden-cli更新
5
- aaden-cli backup
6
- aaden-cli upgrade
1
+ #!/bin/bash
2
+
3
+
4
+ # 检查Aaden-cli更新
5
+ aaden-cli backup
6
+ aaden-cli upgrade
@@ -1,4 +1,4 @@
1
- #!/bin/bash
2
-
3
- sudo chmod -R 777 /var/www/html/Resource
4
- sudo php /var/www/html/PHP/RealTse/tseEnable.php
1
+ #!/bin/bash
2
+
3
+ sudo chmod -R 777 /var/www/html/Resource
4
+ sudo php /var/www/html/PHP/RealTse/tseEnable.php
@@ -1,33 +1,33 @@
1
- #!/bin/bash
2
-
3
- sudo apt-get update -y
4
- sudo apt-get install default-jdk -y
5
-
6
- sudo chmod -R 777 /var/www/html/Resource
7
- sudo php /var/www/html/PHP/RealTse/tseReady.php
8
-
9
- ServiceFileName=/etc/systemd/system/aaden-tse.service
10
-
11
- sudo touch $ServiceFileName
12
- sudo chmod 777 $ServiceFileName
13
- echo -e "
14
- [Unit]
15
- Description=Tse Service For Aaden
16
-
17
- [Service]
18
- Type=simple
19
- Restart=always
20
- RestartSec=1
21
- User=root
22
- ExecStart=/bin/bash /var/www/html/TseHost/tseServing.sh
23
-
24
- [Install]
25
- WantedBy=multi-user.target
26
- " > $ServiceFileName
27
-
28
- sudo systemctl start aaden-tse.service
29
- sudo systemctl enable aaden-tse.service
30
- echo 'YOU CAN USE aaden-cli check-tse to check tse status'
31
- sudo service aaden-tse start
32
-
33
- sudo php /var/www/html/PHP/RealTse/tseEnable.php
1
+ #!/bin/bash
2
+
3
+ sudo apt-get update -y
4
+ sudo apt-get install default-jdk -y
5
+
6
+ sudo chmod -R 777 /var/www/html/Resource
7
+ sudo php /var/www/html/PHP/RealTse/tseReady.php
8
+
9
+ ServiceFileName=/etc/systemd/system/aaden-tse.service
10
+
11
+ sudo touch $ServiceFileName
12
+ sudo chmod 777 $ServiceFileName
13
+ echo -e "
14
+ [Unit]
15
+ Description=Tse Service For Aaden
16
+
17
+ [Service]
18
+ Type=simple
19
+ Restart=always
20
+ RestartSec=1
21
+ User=root
22
+ ExecStart=/bin/bash /var/www/html/TseHost/tseServing.sh
23
+
24
+ [Install]
25
+ WantedBy=multi-user.target
26
+ " > $ServiceFileName
27
+
28
+ sudo systemctl start aaden-tse.service
29
+ sudo systemctl enable aaden-tse.service
30
+ echo 'YOU CAN USE aaden-cli check-tse to check tse status'
31
+ sudo service aaden-tse start
32
+
33
+ sudo php /var/www/html/PHP/RealTse/tseEnable.php
@@ -1,5 +1,5 @@
1
- #!/bin/bash
2
- sudo cp convert.sql ~/c.sql
3
- cd || exit
4
- sudo mysql < c.sql > output.sql
5
- sudo mysql < output.sql
1
+ #!/bin/bash
2
+ sudo cp convert.sql ~/c.sql
3
+ cd || exit
4
+ sudo mysql < c.sql > output.sql
5
+ sudo mysql < output.sql
@@ -1,11 +1,11 @@
1
-
2
- echo "------------------"
3
- echo "use fileName=$1 idVendor=$2"
4
- echo "------------------"
5
-
6
- sudo touch /etc/udev/rules.d/50-$1.rules
7
- sudo chmod 0777 /etc/udev/rules.d/50-$1.rules
8
- echo "SUBSYSTEMS=='usb', ATTRS{idVendor}=='$2', MODE='0777'" > /etc/udev/rules.d/50-$1.rules
9
- sudo udevadm control --reload
10
-
11
- echo "Config OK"
1
+
2
+ echo "------------------"
3
+ echo "use fileName=$1 idVendor=$2"
4
+ echo "------------------"
5
+
6
+ sudo touch /etc/udev/rules.d/50-$1.rules
7
+ sudo chmod 0777 /etc/udev/rules.d/50-$1.rules
8
+ echo "SUBSYSTEMS=='usb', ATTRS{idVendor}=='$2', MODE='0777'" > /etc/udev/rules.d/50-$1.rules
9
+ sudo udevadm control --reload
10
+
11
+ echo "Config OK"
@@ -1,12 +1,12 @@
1
- echo "Setting up Wlan driver for HP"
2
- echo "Please use ctrl + pagedown to confirm later."
3
- echo "need to reboot and select enroll mok to complete install process"
4
-
5
- sudo apt-get install --reinstall git dkms build-essential linux-headers-$(uname -r) -y
6
- sudo mkdir rtl8821ce
7
- sudo chmod 0777 rtl8821ce
8
- git clone https://github.com/tomaspinho/rtl8821ce
9
- cd rtl8821ce
10
- chmod +x dkms-install.sh
11
- chmod +x dkms-remove.sh
12
- sudo ./dkms-install.sh
1
+ echo "Setting up Wlan driver for HP"
2
+ echo "Please use ctrl + pagedown to confirm later."
3
+ echo "need to reboot and select enroll mok to complete install process"
4
+
5
+ sudo apt-get install --reinstall git dkms build-essential linux-headers-$(uname -r) -y
6
+ sudo mkdir rtl8821ce
7
+ sudo chmod 0777 rtl8821ce
8
+ git clone https://github.com/tomaspinho/rtl8821ce
9
+ cd rtl8821ce
10
+ chmod +x dkms-install.sh
11
+ chmod +x dkms-remove.sh
12
+ sudo ./dkms-install.sh