Compiling and Building the Package
NOTE: Clean up before rebuilding
Example for x86_64:
| #!/usr/bin/env bash | |
| echo "**** Scanning 192.168.0.228/255.255.0.0 ****" | |
| ip addr add 192.168.0.228/255.255.0.0 dev eth0 | |
| nmap -T5 -sP --exclude 192.168.1.228 192.168.0-255.0-254 | |
| ip addr del 192.168.0.228/255.255.0.0 dev eth0 | |
| echo "**** Scanning 172.16.0.228/255.255.0.0 ****" | |
| ip addr add 172.16.0.228/255.255.0.0 dev eth0 | |
| nmap -T5 -sP --exclude 172.16.0.228 172.16.0-255.0-255 |
| #!/usr/bin/env bash | |
| # mount configfs | |
| mount -t configfs none /sys/kernel/config | |
| # load libcomposite module | |
| modprobe libcomposite | |
| # create a gadget | |
| mkdir /sys/kernel/config/usb_gadget/g1 | |
| # cd to its configfs node | |
| cd /sys/kernel/config/usb_gadget/g1 |
| #!/usr/bin/env bash | |
| # mount configfs | |
| mount -t configfs none /sys/kernel/config | |
| # load libcomposite module | |
| modprobe libcomposite | |
| # create a gadget | |
| mkdir /sys/kernel/config/usb_gadget/g1 | |
| # cd to its configfs node | |
| cd /sys/kernel/config/usb_gadget/g1 |
| #!/usr/bin/env bash | |
| # mount configfs | |
| mount -t configfs none /sys/kernel/config | |
| # load libcomposite module | |
| modprobe libcomposite | |
| # create a gadget | |
| mkdir /sys/kernel/config/usb_gadget/g1 | |
| # cd to its configfs node | |
| cd /sys/kernel/config/usb_gadget/g1 |
I hereby claim:
To claim this, I am signing this object:
Linux kernel coding style
Link: https://www.kernel.org/doc/html/latest/process/coding-style.html#
Use proper multi-line comments as per the Coding Style.
Start by downloading your Fedora, here we use the Workstation variant, but you can choose another at the download site: